SOURCES: spec.vim - hilite Summary(charset), %description -l charset
glen
glen at pld-linux.org
Tue Oct 21 20:51:17 CEST 2008
Author: glen Date: Tue Oct 21 18:51:17 2008 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- hilite Summary(charset), %description -l charset
---- Files affected:
SOURCES:
spec.vim (1.87 -> 1.88)
---- Diffs:
================================================================
Index: SOURCES/spec.vim
diff -u SOURCES/spec.vim:1.87 SOURCES/spec.vim:1.88
--- SOURCES/spec.vim:1.87 Tue Sep 16 23:30:54 2008
+++ SOURCES/spec.vim Tue Oct 21 20:51:12 2008
@@ -150,10 +150,15 @@
syn match specAttr contained "%\(attrib\|attr\|defattr\|config\|lang\|verify\|dev\)"
" valid options for certain section headers
-syn match specDescriptionOpts contained '\s-[ln]\s*\a'ms=s+1,me=e-1
+syn match specDescriptionOpts contained '\s-[ln]\s\a'ms=s+1,me=e-1 contains=specDescriptionCharset
+"syn match specDescriptionOptLang contained '\s-l\s*[a-zA-Z0-9.-]\+'ms=s+1
syn match specPackageOpts contained '\s-n\s*\w'ms=s+1,me=e-1
syn match specFilesOpts contained '\s-f\s*\w'ms=s+1,me=e-1
+" charset: et,et.UTF-8,pl.UTF-8, ... etc
+syn match specDescriptionCharset contained '-l\s[a-z]\+\(\.UTF-8\)\?'ms=s+2
+syn match specPreAmbleCharset contained '([a-z]\+\(\.UTF-8\)\?):'
+
syn case ignore
@@ -162,10 +167,10 @@
" Copyright and Serial were deprecated by License and Epoch
" PreReq and BuildPreReq deprecated by Requires ans BuildRequires
syn region specPreAmbleDeprecated oneline matchgroup=specError start='^\(Copyright\|Serial\|PreReq\|BuildPreReq\(uires\)\?\)' end='$' contains=specEmail,specURL,specURLMacro,specLicense,specColon,specVariables,specSpecialChar,specMacroIdentifier
-syn region specPreAmble oneline matchgroup=specCommand
+syn region specPreAmble oneline matchgroup=specPreambleField
\ start='\(^\|\(^%{!\??\(with\(out\)\?_[a-zA-Z0-9_]\+\|debug\):\)\@<=\)\(Summary\|Name\|Version\|Packager\|Requires\|Suggests\|Icon\|URL\|Source\d*\|Patch\d*\|Prefix\|Packager\|Group\|License\|Release\|BuildRoot\|Distribution\|Vendor\|Provides\|ExclusiveArch\|ExcludeArch\|ExclusiveOS\|Obsoletes\|BuildArch\|BuildArchitectures\|BuildRequires\|BuildConflicts\|Conflicts\|AutoRequires\|AutoReqProv\|AutoReq\|AutoProv\|Epoch\|NoSource\)'
\ end='$\|}\@='
- \ contains=specEmail,specURL,specURLMacro,specLicense,specLicenseWarning,specColon,specVariables,specSpecialChar,specMacroIdentifier,specSectionMacroBcondArea
+ \ contains=specPreambleCharset,specEmail,specURL,specURLMacro,specLicense,specLicenseWarning,specColon,specVariables,specSpecialChar,specMacroIdentifier,specSectionMacroBcondArea
" %% Description Section %%
syn region specDescriptionArea matchgroup=specSection start='^%description' end='^%'me=e-1
@@ -273,11 +278,14 @@
HiLink specBcond Function
HiLink specColon Special
HiLink specCommand Statement
+ HiLink specPreambleField Comment
HiLink specCommandOpts specOpts
HiLink specCommandSpecial Special
HiLink specComment Comment
HiLink specConfigure specCommand
HiLink specDate String
+ HiLink specPreAmbleCharset String
+ HiLink specDescriptionCharset String
HiLink specDescriptionOpts specOpts
HiLink specEmail specWWWlink
HiLink specError Error
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SOURCES/spec.vim?r1=1.87&r2=1.88&f=u
More information about the pld-cvs-commit
mailing list