SOURCES: spec.vim - match %if 0 in start of specOut2
glen
glen at pld-linux.org
Fri Mar 14 11:54:10 CET 2008
Author: glen Date: Fri Mar 14 10:54:10 2008 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- match %if 0 in start of specOut2
---- Files affected:
SOURCES:
spec.vim (1.78 -> 1.79)
---- Diffs:
================================================================
Index: SOURCES/spec.vim
diff -u SOURCES/spec.vim:1.78 SOURCES/spec.vim:1.79
--- SOURCES/spec.vim:1.78 Thu Mar 13 21:58:05 2008
+++ SOURCES/spec.vim Fri Mar 14 11:54:04 2008
@@ -26,7 +26,6 @@
syn match specVariables contained '\${\w*[#%][^}]*}' contains=specSubstChar
syn match specMacroIdentifier contained '%\h\w*' contains=specMacroNameLocal,specMacroNameOther,specPercent,specSpecialChar
-"syn match specMacroIdentifier contained '%{\w*}' contains=specMacroNameLocal,specMacroNameOther,specPercent,specSpecialChar
syn region specMacroIdentifier oneline matchgroup=Special start='%{' skip='\\}' end='}' contains=specMacroNameLocal,specMacroNameOther,specPercent,specSpecialChar
syn match specBcond contained '%{with\(out\)\?\s\+[a-zA-Z0-9_-]\+}'
@@ -132,7 +131,7 @@
" tip: remember do include new items on specScriptArea's skip section
syn region specSectionMacroArea oneline matchgroup=specSectionMacro start='^%\(\(un\)\?define\|dump\|trace\|patch\d*\|setup\|configure2_13\|configure\|GNUconfigure\|find_lang\|makeinstall\|cmake\|scons\|waf\|bcond_with\(out\)\?\|include\)\>' end='$' contains=specCommandOpts,specMacroIdentifier,specSectionMacroBcondArea
syn region specSectionMacroBracketArea oneline matchgroup=specSectionMacro start='^%{\(configure2_13\|configure\|GNUconfigure\|find_lang\|makeinstall\|cmake\|scons\|waf\)}' end='$' contains=specCommandOpts,specMacroIdentifier
-syn region specSectionMacroBcondArea oneline matchgroup=specBlock start='%{!\??\(with\(out\)\?_[a-zA-Z0-9_]\+\|debug\):' skip='\\}' end='}' contains=ALLBUT,shCase
+syn region specSectionMacroBcondArea oneline matchgroup=specBlock start='%{!\??\(with\(out\)\?_[a-zA-Z0-9_]\+\|debug\):' skip='\\}' end='}' contains=ALL
" %% Files Section %%
" TODO %config valid parameters: missingok\|noreplace
@@ -225,7 +224,7 @@
" %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="%if\s\+0" end="^\s*%\(endif\>\|else\>\)" contains=specOutSkip
syn region specOutSkip contained start="^\s*%if\>" end="^\s*%endif\>" contains=specOutSkip
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SOURCES/spec.vim?r1=1.78&r2=1.79&f=u
More information about the pld-cvs-commit
mailing list