SOURCES: spec.vim - fixed %py_o?comp and %service/%banner hiligthing

glen glen at pld-linux.org
Tue Jul 19 01:12:15 CEST 2005


Author: glen                         Date: Mon Jul 18 23:12:15 2005 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- fixed %py_o?comp and %service/%banner hiligthing

---- Files affected:
SOURCES:
   spec.vim (1.23 -> 1.24) 

---- Diffs:

================================================================
Index: SOURCES/spec.vim
diff -u SOURCES/spec.vim:1.23 SOURCES/spec.vim:1.24
--- SOURCES/spec.vim:1.23	Sun Jul 10 14:43:59 2005
+++ SOURCES/spec.vim	Tue Jul 19 01:12:10 2005
@@ -64,7 +64,8 @@
 " 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\|apache_config_\(un\)\?install\|depmod\)'
+syn match   specMacro contained '%\(\(group\|user\)\(add\|remove\)\|banner\|service\|addusertogroup\|apache_config_\(un\)\?install\|depmod\|py_o\?comp\)'
+" 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
 syn cluster specCommands contains=specCommand,specTarCommand,specConfigure,specCommandSpecial,specMacro
@@ -82,7 +83,7 @@
 " valid _macro names from /usr/lib/rpm/macros
 syn keyword specMacroNameLocal contained _aclocaldir _applnkdir _arch _binary_payload _bindir _build _build_arch _build_alias
 syn keyword specMacroNameLocal contained _build_cpu _builddir _build_os _buildshell _buildsubdir _build_vendor _bzip2bin _datadir
-syn keyword specMacroNameLocal contained _dbpath _dbpath_rebuild _defaultdocdir _desktopdir _docdir _examplesdir _excludedocs
+syn keyword specMacroNameLocal contained _dbpath _dbpath_rebuild _defaultdocdir _desktopdir _docdir _examplesdir _excludedocs _kdedocdir
 syn keyword specMacroNameLocal contained _exec_prefix _fixgroup _fixowner _fixperms _fontsdir _ftpport _ftpproxy _gnu _gpg_name
 syn keyword specMacroNameLocal contained _gpg_path _gtkdocdir _gzipbin _host _host_alias _host_cpu _host_os _host_vendor
 syn keyword specMacroNameLocal contained _httpport _httpproxy _iconsdir _includedir _infodir _initrddir _install_langs
@@ -139,9 +140,10 @@
 " %% Scripts Section %%
 syn region specScriptArea matchgroup=specSection
 	\ start='^%\(prep\|build\|install\|clean\|pre\|postun\|preun\|post\|triggerin\|triggerun\|triggerpostun\)\>'
-	\ skip='^%{\|^%\(define\|patch\d*\|configure2_13\|configure\|GNUconfigure\|setup\|find_lang\|makeinstall\|useradd\|groupadd\|addusertogroup\|py_comp\|py_ocomp\|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\|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
 
 " %% Changelog Section %%
 syn region specChangelogArea matchgroup=specSection start='^%changelog' end='^%'me=e-1
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SOURCES/spec.vim?r1=1.23&r2=1.24&f=u




More information about the pld-cvs-commit mailing list