]> git.pld-linux.org Git - packages/vim.git/commitdiff
- fixed %py_o?comp and %service/%banner hiligthing
authorElan Ruusamäe <glen@pld-linux.org>
Mon, 18 Jul 2005 23:12:10 +0000 (23:12 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    spec.vim -> 1.24

spec.vim

index a256ec1f3bff1e888faafe83e46bf0430079e7bc..ca9790ae01fb1468012cd32ac7445af6b5b8a194 100644 (file)
--- a/spec.vim
+++ b/spec.vim
@@ -64,7 +64,8 @@ syn cluster specListedFiles contains=specListedFilesBin,specListedFilesLib,specL
 " 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 @@ syn match   specMacroNameOther contained '\<\(PATCH\|SOURCE\)\d*\>'
 " 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 @@ syn region specPackageArea matchgroup=specSection start='^%package' end='^%'me=e
 " %% 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,@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
This page took 0.29625 seconds and 4 git commands to generate.