Use Go regex word boundaries

This commit is contained in:
Zachary Yedidia
2017-03-01 17:08:56 -05:00
parent 995a910f6a
commit 3c192c2fb5
27 changed files with 101 additions and 96 deletions

View File

@@ -1,12 +1,12 @@
syntax "rpmspec" "\.spec$" "\.rpmspec$"
color preproc "\<(Icon|ExclusiveOs|ExcludeOs):"
color preproc "\<(BuildArch|BuildArchitectures|ExclusiveArch|ExcludeArch):"
color preproc "\<(Conflicts|Obsoletes|Provides|Requires|Requires\(.*\)|Enhances|Suggests|BuildConflicts|BuildRequires|Recommends|PreReq|Supplements):"
color preproc "\<(Epoch|Serial|Nosource|Nopatch):"
color preproc "\<(AutoReq|AutoProv|AutoReqProv):"
color preproc "\<(Copyright|License|Summary|Summary\(.*\)|Distribution|Vendor|Packager|Group|Source[0-9]*|Patch[0-9]*|BuildRoot|Prefix):"
color preproc "\<(Name|Version|Release|Url|URL):"
color preproc "\b(Icon|ExclusiveOs|ExcludeOs):"
color preproc "\b(BuildArch|BuildArchitectures|ExclusiveArch|ExcludeArch):"
color preproc "\b(Conflicts|Obsoletes|Provides|Requires|Requires\(.*\)|Enhances|Suggests|BuildConflicts|BuildRequires|Recommends|PreReq|Supplements):"
color preproc "\b(Epoch|Serial|Nosource|Nopatch):"
color preproc "\b(AutoReq|AutoProv|AutoReqProv):"
color preproc "\b(Copyright|License|Summary|Summary\(.*\)|Distribution|Vendor|Packager|Group|Source[0-9]*|Patch[0-9]*|BuildRoot|Prefix):"
color preproc "\b(Name|Version|Release|Url|URL):"
color preproc start="^(Source|Patch)" end=":"
color preproc "(i386|i486|i586|i686|athlon|ia64|alpha|alphaev5|alphaev56|alphapca56|alphaev6|alphaev67|sparc|sparcv9|sparc64armv3l|armv4b|armv4lm|ips|mipsel|ppc|ppc|iseries|ppcpseries|ppc64|m68k|m68kmint|Sgi|rs6000|i370|s390x|s390|noarch)"
color preproc "(ifarch|ifnarch|ifos|ifnos)"