SOURCES: spec.vim - recognize more macros (code too ugly to list t...
glen
glen at pld-linux.org
Sat Nov 12 22:29:47 CET 2005
Author: glen Date: Sat Nov 12 21:29:46 2005 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- recognize more macros (code too ugly to list them)
---- Files affected:
SOURCES:
spec.vim (1.36 -> 1.37)
---- Diffs:
================================================================
Index: SOURCES/spec.vim
diff -u SOURCES/spec.vim:1.36 SOURCES/spec.vim:1.37
--- SOURCES/spec.vim:1.36 Sun Nov 6 13:06:01 2005
+++ SOURCES/spec.vim Sat Nov 12 22:29:41 2005
@@ -64,7 +64,7 @@
" specComands
syn match specConfigure contained '\./configure'
syn match specTarCommand contained '\<tar\s\+[cxvpzjf]\{,5}\s*'
-syn match specMacro contained '%\(\(group\|user\)\(add\|remove\)\|banner\|service\|addusertogroup\|\(\(nsplugin\|apache_config\)_\(un\)\?install\)\|depmod\|py_o\?comp\)'
+syn match specMacro contained '%\(\(group\|user\)\(add\|remove\)\|banner\|service\|addusertogroup\|\(\(nsplugin\|apache_config\)_\(un\)\?install\)\|depmod\|py_o\?comp\|py_postclean\)'
" XXX don't forget to update specScriptArea when updating specMacro
syn keyword specCommandSpecial contained root
syn keyword specCommand contained make xmkmf mkdir chmod find sed rm strip moc echo grep ls rm mv mkdir chown install cp pwd cat tail then else elif cd gzip rmdir ln eval export touch unzip bzip2
@@ -77,7 +77,7 @@
syn keyword specMacroNameOther contained buildroot buildsubdir distribution disturl ix86 name nil optflags perl_sitearch release requires_eq vendor version
syn keyword specMacroNameOther contained __kernel_ver date debugcflags debuginfocflags epoch kgcc kgcc_package packager
syn keyword specMacroNameOther contained pear_package_install pear_package_setup perl_archlib perl_privlib perl_sitelib
-syn keyword specMacroNameOther contained perl_vendorarch perl_vendorlib php_pear_dir py_sitedir py_sitescriptdir releq_kernel_smp
+syn keyword specMacroNameOther contained perl_vendorarch perl_vendorlib php_pear_dir py_sitedir py_scriptdir py_sitescriptdir releq_kernel_smp
syn keyword specMacroNameOther contained releq_kernel_up requires_php_extension requires_releq_kernel_smp requires_releq_kernel_up
syn keyword specMacroNameOther contained requires_zend_extension rpmcflags rpmcxxflags rpmldflags tmpdir x8664
@@ -143,7 +143,7 @@
" %% Scripts Section %%
syn region specScriptArea matchgroup=specSection
\ start='^%\(prep\|build\|install\|clean\|pre\|postun\|preun\|post\|triggerin\|triggerun\|triggerpostun\|pretrans\|posttrans\|verifyscript\)\>'
- \ skip='^%{\|^%\(define\|patch\d*\|configure2_13\|configure\|GNUconfigure\|setup\|find_lang\|makeinstall\|useradd\|groupadd\|addusertogroup\|banner\|service\|py_o\?comp\|\(\(nsplugin\|apache_config\)_\(un\)\?install\)\|depmod\)\>'
+ \ skip='^%{\|^%\(define\|patch\d*\|configure2_13\|configure\|GNUconfigure\|setup\|find_lang\|makeinstall\|useradd\|groupadd\|addusertogroup\|banner\|service\|py_o\?comp\|py_postclean\|\(\(nsplugin\|apache_config\)_\(un\)\?install\)\|depmod\)\>'
\ end='^%'me=e-1
\ contains=specSpecialVariables,specVariables, at specCommands,specVariables,shDo,shFor,shCaseEsac,specNoNumberHilite,specCommandOpts,shComment,shIf,specSpecialChar,specMacroIdentifier,specSectionMacroArea,specSectionMacroBracketArea,shOperator,shQuote1,shQuote2,specSectionMacroBcondArea
" XXX don't forget to update specMacro when updating specScriptArea
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SOURCES/spec.vim?r1=1.36&r2=1.37&f=u
More information about the pld-cvs-commit
mailing list