SOURCES: spec.vim - %if 0 handling (NFY) - update header

glen glen at pld-linux.org
Thu Mar 13 19:48:20 CET 2008


Author: glen                         Date: Thu Mar 13 18:48:20 2008 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- %if 0 handling (NFY)
- update header

---- Files affected:
SOURCES:
   spec.vim (1.71 -> 1.72) 

---- Diffs:

================================================================
Index: SOURCES/spec.vim
diff -u SOURCES/spec.vim:1.71 SOURCES/spec.vim:1.72
--- SOURCES/spec.vim:1.71	Sun Feb 17 18:57:21 2008
+++ SOURCES/spec.vim	Thu Mar 13 19:48:14 2008
@@ -1,9 +1,9 @@
 " Filename:    spec.vim
 " Purpose:     Vim syntax file
-" Language:    SPEC: Build/install scripts for Linux RPM packages
-" Maintainer:  Donovan Rebbechi elflord at pegasus.rutgers.edu
-" URL:	       http://pegasus.rutgers.edu/~elflord/vim/syntax/spec.vim
-" Last Change: Tue Oct  3 17:35:15 BRST 2000 <aurelio at conectiva.com.br>
+" Language:    SPEC: Build/install scripts for PLD Linux RPM packages
+" Maintainer:  PLD Linux <feedback at pld-linux.org>
+" URL:	       http://www.pld-linux.org/
+" Last Change: $Date$
 
 " For version 5.x: Clear all syntax items
 " For version 6.x: Quit when a syntax file was already loaded
@@ -33,10 +33,8 @@
 syn match specCommandOpts      contained '\s\(-\w\+\|--\w[a-zA-Z0-9_-]\+\)'ms=s+1
 syn match specComment '^\s*#.*$'
 
-
 syn case match
 
-
 " matches with no highlight
 syn match specNoNumberHilite 'X11\|X11R6\|[a-zA-Z]*\.\d\|[a-zA-Z][-/]\d'
 syn match specManpageFile '[a-zA-Z]\.1'
@@ -225,6 +223,11 @@
 syn sync match shCaseEsacSync grouphere  shCaseEsac "\<case\>"
 syn sync match shCaseEsacSync groupthere shCaseEsac "\<esac\>"
 
+" %if 0 handing
+syn region specOut start="^\s*%if\s\+0\+\>" end=".\@=\|$" contains=specOut2
+syn region specOut2 contained start="0" end="^\s*%\(endif\>\|else\>\)" contains=specOutSkip
+syn region specOutSkip contained start="^\s*%if\>" end="^\s*%endif\>" contains=specOutSkip
+
 " Define the default highlighting.
 " For version 5.7 and earlier: only when not done already
 " For version 5.8 and later: only when an item doesn't have highlighting yet
@@ -303,6 +306,10 @@
   HiLink specLogMessage			Identifier
   HiLink specLogError			Error
 
+  HiLink specOutSkip            specOut
+  HiLink specOut2            specOut
+  HiLink specOut             Comment
+
   delcommand HiLink
 endif
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SOURCES/spec.vim?r1=1.71&r2=1.72&f=u



More information about the pld-cvs-commit mailing list