Author: glen Date: Thu Mar 13 19:41:48 2008 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- fix matching "0" anywhere in file
---- Files affected:
SOURCES:
spec.vim (1.74 -> 1.75)
---- Diffs:
================================================================
Index: SOURCES/spec.vim
diff -u SOURCES/spec.vim:1.74 SOURCES/spec.vim:1.75
--- SOURCES/spec.vim:1.74 Thu Mar 13 20:13:08 2008
+++ SOURCES/spec.vim Thu Mar 13 20:41:42 2008
@@ -218,15 +218,13 @@
syn sync match shCaseEsacSync grouphere shCaseEsac "\<case\>"
syn sync match shCaseEsacSync groupthere shCaseEsac "\<esac\>"
-syn region specIf matchgroup=specBlock
start="%ifosf\|%ifos\|%ifnos\|%ifarch\|%ifnarch\|ifdef\|ifndef\|%if\|%else"
end='%endif' contains=ALLBUT, specOutSkip
+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="0" end="^\s*%\(endif\>\|else\>\)"
contains=specOutSkip
+syn region specOut2 contained start="\<0" end="^\s*%\(endif\>\|else\>\)"
contains=specOutSkip
-"syn region specOut start="^\s*%if\s\+0\+\>" end="^\s*%\(endif\>\|else\>\)"
contains=specOutSkip
-
-syn region specOutSkip contained start="^\s*%if\>" skip="\\$"
end="^\s*%endif\>" contains=specOutSkip
+syn region specOutSkip contained start="^\s*%if\>" end="^\s*%endif\>"
contains=specOutSkip
syn sync match specIfSync grouphere specIf
"%if\|%ifarch\|%ifos\|%ifnos"
syn sync match specIfSync groupthere specIf "%endIf"
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SOURCES/spec.vim?r1=1.74&r2=1.75&f=u
_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit