Author: glen                         Date: Tue Apr  8 20:15:04 2008 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- spec %if 0 handling isn't finished

---- Files affected:
SOURCES:
   spec.vim (1.79 -> 1.80) 

---- Diffs:

================================================================
Index: SOURCES/spec.vim
diff -u SOURCES/spec.vim:1.79 SOURCES/spec.vim:1.80
--- SOURCES/spec.vim:1.79       Fri Mar 14 11:54:04 2008
+++ SOURCES/spec.vim    Tue Apr  8 22:14:59 2008
@@ -223,13 +223,15 @@
 syn region specIf  matchgroup=specBlock 
start="%ifosf\|%ifos\|%ifnos\|%ifarch\|%ifnarch\|ifdef\|ifndef\|%if\|%else"  
end='%endif' contains=ALLBUT, specOutSkip, specOut2
 
 " %if 0 handing
-syn region specOut start="^\s*%if\s\+0$" end="$" contains=specOut2
-syn region specOut2 contained start="%if\s\+0" end="^\s*%\(endif\>\|else\>\)" 
contains=specOutSkip
+if exists("spec_if0")
+    syn region specOut start="^\s*%if\s\+0$" end="$" contains=specOut2
+    syn region specOut2 contained start="%if\s\+0" 
end="^\s*%\(endif\>\|else\>\)" contains=specOutSkip
 
-syn region specOutSkip contained start="^\s*%if\>" end="^\s*%endif\>" 
contains=specOutSkip
+    syn region specOutSkip contained start="^\s*%if\>" end="^\s*%endif\>" 
contains=specOutSkip
 
-syn sync match specIfSync     grouphere  specIf     "%ifarch\|%ifos\|%ifnos"
-syn sync match specIfSync     groupthere specIf     "%endIf"
+    syn sync match specIfSync     grouphere  specIf     
"%ifarch\|%ifos\|%ifnos"
+    syn sync match specIfSync     groupthere specIf     "%endIf"
+endif
 
 " Define the default highlighting.
 " For version 5.7 and earlier: only when not done already
================================================================

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

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to