]> git.pld-linux.org Git - packages/vim-syntax-spec.git/blob - spec.vim
add __python3
[packages/vim-syntax-spec.git] / spec.vim
1 " Filename:    spec.vim
2 " Purpose:     Vim syntax file
3 " Language:    RPM SPEC: Build/install scripts for PLD Linux RPM packages
4 " Maintainer:  PLD Linux <feedback@pld-linux.org>
5 " URL:         http://git.pld-linux.org/packages/vim-syntax-spec/
6 " Version:     1.126
7
8 " For version 5.x: Clear all syntax items
9 " For version 6.x: Quit when a syntax file was already loaded
10 if version < 600
11   syntax clear
12 elseif exists("b:current_syntax")
13   finish
14 endif
15
16 " we're quite strict on spec syntax, so match case for everything
17 syn case match
18
19 syn sync minlines=1000
20
21 syn cluster specLimitedVisibility contains=specConfOpts,specConfOptsBcond,specConfOptsName,specDescriptionLimit
22
23 syn match specSpecialChar contained '[][!$()\\|>^;:]'
24 syn match specColon       contained ':'
25 syn match specPercent     contained '%'
26 syn match specSubstChar   contained '[#%]'
27
28 syn match specVariables   contained '\$\h\w*' contains=specSpecialVariablesNames,specSpecialChar
29 syn match specVariables   contained '\${\w*}' contains=specSpecialVariablesNames,specSpecialChar
30 syn match specVariables   contained '\${\w*[#%][^}]*}' contains=specSubstChar
31
32 syn match specMacroIdentifier contained '%\h\w*' contains=specMacroNameLocal,specMacroNameOther,specPercent,specSpecialChar
33 syn region specMacroIdentifier oneline matchgroup=Special start='%{' skip='\\}' end='}' contains=specConfOpts,specMacroNameLocal,specMacroNameOther,specPercent,specSpecialChar
34 syn match specBcond contained '%{with\(out\)\?\s\+[a-zA-Z0-9_-]\+}'
35
36 syn match specConfOpts contained '{\@<=__with\(_without\)\?' nextgroup=specConfOptsBcond
37 syn match specConfOpts contained '{\@<=__without' nextgroup=specConfOptsBcond
38 syn match specConfOpts contained '{\@<=__enable\(_disable\)\?' nextgroup=specConfOptsBcond
39 syn match specConfOpts contained '{\@<=__disable' nextgroup=specConfOptsBcond
40 syn match specConfOptsBcond contained '\s\+[a-zA-Z0-9_]\+' nextgroup=specConfOptsName
41 syn match specConfOptsName contained '\s\+[a-zA-Z0-9_-]\+'
42
43 syn match specSpecialVariables contained '\$[0-9]\|\${[0-9]}'
44 syn match specCommandOpts      contained '\(\s\|:\)\@<=\(-\w\+\|--\w[a-zA-Z0-9_-]\+\)'
45 syn match specComment '^\s*#.*$' contains=@specCommentGroup
46
47 " specTodo: contains common special-notices for comments
48 " Use the specCommentGroup cluster to add your own in vimrc
49 syn keyword specTodo contained  FIXME TODO XXX
50 syn cluster specCommentGroup    contains=specTodo,@Spell
51
52 " matches with no highlight
53 syn match specNoNumberHilite 'X11\|X11R6\|[a-zA-Z]*\.\d\|[a-zA-Z][-/]\d'
54 syn match specManpageFile '[a-zA-Z]\.1'
55
56 " Day, Month and most used license acronyms
57 syn keyword specLicense contained GPL LGPL BSD MIT GNU Apache PHP
58 syn keyword specLicenseWarning contained unknown
59 syn match specLicenseWarning contained /same as perl/
60 syn match specLicenseWarning contained "(enter GPL/LGPL/BSD/BSD-like/Artistic/other license name here)"
61 syn keyword specWeekday contained Mon Tue Wed Thu Fri Sat Sun
62 syn keyword specMonth   contained Jan Feb Mar Apr Jun Jul Aug Sep Oct Nov Dec
63 syn keyword specMonth   contained January February March April May June July August September October November December
64
65 " #, @, www
66 syn match specNumber '\(^-\=\|[ \t]-\=\|-\)[0-9.-]*[0-9]'
67 syn match specEmail contained "<\=\<[A-Za-z0-9_.-]\+@\([A-Za-z0-9_-]\+\.\)\+[A-Za-z]\+\>>\="
68 syn match specURL      contained '\<\(\(https\{0,1}\|ftp\)://\|\(www[23]\{0,1}\.\|ftp\.\)\)[A-Za-z0-9._/~:,#+?=-]\+\>'
69 syn match specURLMacro contained '\<\(\(https\{0,1}\|ftp\)://\|\(www[23]\{0,1}\.\|ftp\.\)\)[A-Za-z0-9._/~:,#+%{}-]\+\>' contains=specMacroIdentifier
70
71 " TODO take specSpecialVariables out of the cluster for the sh* contains (ALLBUT)
72 " Special system directories
73 syn match specListedFilesPrefix contained '/\(usr\|local\|opt\|X11R6\|X11\)/'me=e-1
74 syn match specListedFilesBin    contained '/s\=bin/'me=e-1
75 syn match specListedFilesLib    contained '/\(lib\|include\)/'me=e-1
76 syn match specListedFilesDoc    contained '/\(man\d*\|doc\|info\)\>'
77 syn match specListedFilesEtc    contained '/etc/'me=e-1
78 syn match specListedFilesShare  contained '/share/'me=e-1
79 syn cluster specListedFiles contains=specListedFilesBin,specListedFilesLib,specListedFilesDoc,specListedFilesEtc,specListedFilesShare,specListedFilesPrefix,specSpecialChar
80
81 " specComands
82 syn match   specConfigure  contained '\./configure'
83 syn match   specTarCommand contained '\<tar\s\+[cxvpzjf]\{,5}\s*'
84
85 " XXX don't forget to update specScriptArea when updating specMacro
86 syn match   specMacro contained '%\(group\|user\)\(add\|remove\)'
87 syn match   specMacro contained '%\(depmod\|banner\|service\|addusertogroup\|env_update\)'
88 syn match   specMacro contained '%\(\(nsplugin\|apache_config\)_\(un\)\?install\)'
89 syn match   specMacro contained '%\(\(openldap_schema\|webapp\)_\(un\)\?register\)'
90 syn match   specMacro contained '%\(pear_package_\(setup\|install\)\)'
91 syn match   specMacro contained '%\(py_o\?comp\|py_postclean\|py_lint\)'
92 syn match   specMacro contained '%\(build\|install\)_kernel_modules'
93 syn match   specMacro contained '%ant'
94 syn match   specMacro contained '%\(php\|php4\)_webserver_restart'
95 syn match   specMacro contained '%update_browser_plugins\|%browser_plugins_add_browser'
96 syn match   specMacro contained '%gconf_schema_\(un\)?install\|%glib_compile_schemas'
97 syn match   specMacro contained '%scrollkeeper_update_post\(un\)?'
98 syn match   specMacro contained '%update_icon_cache\|%update_mime_database'
99 syn match   specMacro contained '%update_desktop_database_post\|%update_desktop_database_postun'
100 syn match   specMacro contained '%undos'
101 syn match   specMacro contained '%nagios_nrpe'
102 syn match   specMacro contained '%cacti_import_template'
103
104 syn keyword specCommandSpecial contained root
105 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
106 syn cluster specCommands contains=specCommand,specTarCommand,specConfigure,specCommandSpecial,specMacro
107
108 " frequently used rpm env vars
109 syn keyword specSpecialVariablesNames contained RPM_BUILD_ROOT RPM_BUILD_DIR RPM_SOURCE_DIR RPM_OPT_FLAGS LDFLAGS CC CC_FLAGS CPPNAME CFLAGS CXX CXXFLAGS CPPFLAGS
110
111 " valid macro names from /usr/lib/rpm/macros*
112 syn keyword specMacroNameOther contained ix86 x8664 ppc arm
113 syn keyword specMacroNameOther contained bootstrap_release buildrequires_jdk buildroot buildsubdir distribution disturl name nil optflags perl_sitearch release requires_eq vendor version
114 syn keyword specMacroNameOther contained __kernel_ver date debugcflags debuginfocflags epoch kgcc kgcc_package packager
115 syn keyword specMacroNameOther contained pear_package_install pear_package_setup perl_archlib perl_privlib perl_sitelib
116 syn keyword specMacroNameOther contained perl_vendorarch perl_vendorlib php_pear_dir php_data_dir
117 syn keyword specMacroNameOther contained py_sitedir py_scriptdir py_sitescriptdir
118 syn keyword specMacroNameOther contained py3_sitedir py3_scriptdir py3_sitescriptdir
119 syn keyword specMacroNameOther contained required_jdk requires_php_extension requires_php_pdo_module
120 syn keyword specMacroNameOther contained requires_zend_extension ruby_mod_ver_requires_eq ruby_ver_requires_eq rpmcflags rpmcppflags rpmcxxflags rpmldflags tmpdir
121 syn keyword specMacroNameOther contained ruby_archdir ruby_rubylibdir ruby_vendorarchdir ruby_vendorlibdir ruby_ridir ruby_sitearchdir ruby_sitelibdir ruby_version ruby_rdocdir
122 syn keyword specMacroNameOther contained ruby_specdir ruby_gemdir
123 syn keyword specMacroNameOther contained apache_modules_api php_sysconfdir php_includedir php_extensiondir _browserpluginsdir _browserpluginsconfdir
124 syn keyword specMacroNameOther contained releq_kernel releq_kernel_up releq_kernel_smp requires_releq_kernel requires_releq_kernel_up requires_releq_kernel_smp
125 syn keyword specMacroNameOther contained pyrequires_eq
126 syn keyword specMacroNameOther contained nodejs_libdir
127 syn keyword specMacroNameOther contained systemdtmpfilesdir systemdunitdir systemduserunitdir
128
129 syn match   specMacroNameOther contained '\<\(PATCH\|SOURCE\)\d*\>'
130
131 " valid _macro names from /usr/lib/rpm/macros*
132 syn keyword specMacroNameLocal contained _aclocaldir _applnkdir _arch _binary_payload _bindir _build _build_arch _build_alias
133 syn keyword specMacroNameLocal contained _build_cpu _builddir _build_os _buildshell _buildsubdir _build_vendor _bzip2bin _datadir
134 syn keyword specMacroNameLocal contained _dbpath _dbpath_rebuild _defaultdocdir _desktopdir _docdir _examplesdir _excludedocs _kdedocdir
135 syn keyword specMacroNameLocal contained _exec_prefix _fixgroup _fixowner _fixperms _fontsdir _ftpport _ftpproxy _gnu _gpg_name
136 syn keyword specMacroNameLocal contained _gpg_path _gtkdocdir _gzipbin _host _host_alias _host_cpu _host_os _host_vendor
137 syn keyword specMacroNameLocal contained _httpport _httpproxy _iconsdir _includedir _infodir _initrddir _install_langs
138 syn keyword specMacroNameLocal contained _install_script_path _instchangelog _javaclasspath _javadir _javadocdir _javasrcdir _kernelsrcdir
139 syn keyword specMacroNameLocal contained _kernel_ver _kernel_ver_str _kernel_vermagic _langpatt _lib _libdir _libexecdir _localstatedir _mandir
140 syn keyword specMacroNameLocal contained _netsharedpath _oldincludedir _omf_dest_dir _os _package_version _pgpbin _pgp_name
141 syn keyword specMacroNameLocal contained _pgp_path _pixmapsdir _pkgconfigdir _npkgconfigdir _prefix _preScriptEnvironment _provides _rpmdir
142 syn keyword specMacroNameLocal contained _rpmfilename _sbindir _sharedstatedir _signature _smp_mflags _sourcedir _source_payload
143 syn keyword specMacroNameLocal contained _specdir _srcrpmdir _sysconfdir _target _target_alias _target_cpu _target_os _target_platform
144 syn keyword specMacroNameLocal contained _target_vendor _target_base_arch _timecheck _tmppath _topdir _usr _usrsrc _var _vendor
145 syn keyword specMacroNameLocal contained __cxx __cc __ar __libtoolize __autopoint __aclocal __autoconf __automake __autoheader __gnome_doc_common
146 syn keyword specMacroNameLocal contained __gettextize __glib_gettextize __gtkdocize __intltoolize
147 syn keyword specMacroNameLocal contained __bzip2 __cat __chgrp __chmod __chown __cp   __cpio __file __gpg __grep __gzip
148 syn keyword specMacroNameLocal contained __id  __install __ld   __make   __mkdir __mkdir_p __mv __nm  __objcopy __objdump
149 syn keyword specMacroNameLocal contained __patch __perl __pgp __python __python3 __rm __rsh  __sed __ssh __strip  __tar __unzip __lzma
150 " jpackage macros (defined in macros.build)
151 syn keyword specMacroNameLocal contained _jnidir _jvmdir _jvmjardir _jvmprivdir _jvmlibdir _jvmdatadir _jvmsysconfdir _jvmcommonlibdir _jvmcommondatadir _jvmcommonsysconfdir
152 syn keyword specMacroNameLocal contained java_home jar java javac javadoc
153
154
155 " ------------------------------------------------------------------------------
156 " here's is all the spec sections definitions: PreAmble, Description, Package,
157 "   Scripts, Files and Changelog
158
159 " One line macros - valid in all ScriptAreas
160 " tip: remember do include new items on specScriptArea's skip section
161 syn region specSectionMacroArea oneline matchgroup=specSectionMacro start='^%\(\(un\)\?\(define\|global\)\|dump\|trace\|patch\d*\|setup\|configure2_13\|configure\|GNUconfigure\|find_lang\|makeinstall\|cmake\|scons\|waf\|bcond_with\(out\)\?\|include\)\>' end='$' contains=specCommandOpts,specMacroIdentifier,specSectionMacroBcondArea
162 syn region specSectionMacroBracketArea oneline matchgroup=specSectionMacro start='^%{\(configure2_13\|configure\|GNUconfigure\|find_lang\|makeinstall\|cmake\|scons\|waf\)}' end='$' contains=specCommandOpts,specMacroIdentifier
163 syn region specSectionMacroBcondArea oneline matchgroup=specBlock start='%{!\??\(with\(out\)\?_[a-zA-Z0-9_]\+\|debug\):' skip='\\}' end='}' contains=ALLBUT,@specLimitedVisibility
164
165 " %% Files Section %%
166 " TODO %config valid parameters: missingok\|noreplace
167 " TODO %verify valid parameters: \(not\)\= \(md5\|atime\|...\)
168 syn region specFilesArea matchgroup=specSection start="^%files\>"
169         \ skip="%\(attrib\|defattr\|attr\|dir\|config\|docdir\|doc\|lang\|verify\|ghost\|exclude\|dev\|if\|ifarch\|ifnarch\|else\|endif\)\>"
170         \ end='^%[a-zA-Z]'me=e-2
171         \ contains=specFilesOpts,specFilesDirective,@specListedFiles,specComment,specCommandSpecial,specMacroIdentifier,specSectionMacroBcondArea,specIf
172
173 " tip: remember to include new items in specFilesArea above
174 syn match  specFilesDirective contained '%\(dir\|docdir\|doc\|ghost\|exclude\)\>'
175 syn region specFilesDirective contained start="%\(attrib\|attr\|defattr\|config\|lang\|verify\|dev\)(" end=")" contains=specAttr transparent
176 syn match  specAttr contained "%\(attrib\|attr\|defattr\|config\|lang\|verify\|dev\)"
177
178 " valid options for certain section headers
179 syn match specDescriptionOpts contained '\s-[ln]\s\a'ms=s+1,me=e-1 contains=specDescriptionCharset
180 "syn match specDescriptionOptLang contained '\s-l\s*[a-zA-Z0-9.-]\+'ms=s+1
181 syn match specPackageOpts     contained    '\s-n\s*\w'ms=s+1,me=e-1
182 syn match specFilesOpts       contained    '\s-f\s*\w'ms=s+1,me=e-1
183
184 " charset: et,et.UTF-8,pl.UTF-8,pt_BR, ... etc
185 syn match specDescriptionCharset         contained '-l\s[a-z_A-Z]\+\(\.UTF-8\)\?'ms=s+2
186 syn match specPreAmbleCharset         contained '([a-z_A-Z]\+\(\.UTF-8\)\?):'
187
188 " limit description width to 70 columns
189 syn match specDescriptionLimit contained '\%>70v.\+'
190
191 " %% PreAmble Section %%
192 " Copyright and Serial were deprecated by License and Epoch
193 " PreReq and BuildPreReq deprecated by Requires ans BuildRequires
194 syn region specPreAmbleDeprecated oneline matchgroup=specError start='^\(Copyright\|Serial\|PreReq\|BuildPreReq\(uires\)\?\)' end='$' contains=specEmail,specURL,specURLMacro,specLicense,specColon,specVariables,specSpecialChar,specMacroIdentifier
195 syn region specPreAmble oneline matchgroup=specPreambleField
196         \ start='\(^\|\(^%{!\??\(with\(out\)\?_[a-zA-Z0-9_]\+\|debug\):\)\@<=\)\(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\)'
197         \ end='$\|}\@='
198         \ contains=specEmail,specURL,specURLMacro,specLicense,specLicenseWarning,specColon,specVariables,specSpecialChar,specMacroIdentifier,specSectionMacroBcondArea
199
200 syn region specPreAmble oneline matchgroup=specPreambleField
201         \ start='\(Summary\)'
202         \ end='$\|}\@='
203         \ contains=specPreambleCharset,specURLMacro,specMacroIdentifier,specSectionMacroBcondArea
204
205 " %% Description Section %%
206 syn region specDescriptionArea matchgroup=specSection start='^%description' end='^%'me=e-1
207         \ contains=specDescriptionOpts,specEmail,specURL,specNumber,specMacroIdentifier,specComment,specDescriptionLimit
208
209 " %% Package Section %%
210 syn region specPackageArea matchgroup=specSection start='^%package' end='^%'me=e-1
211         \ contains=specPackageOpts,specPreAmble,specComment,specMacroNameOther
212
213 " %% Scripts Section %%
214 syn region specScriptArea matchgroup=specSection
215         \ start='^%\(prep\|build\|install\|clean\|pre\|postun\|preun\|post\|triggerprein\|triggerin\|triggerun\|triggerpostun\|pretrans\|posttrans\|verifyscript\|check\)\>'
216         \ skip='^%{\|^%\(\(un\)\?\(define\|global\)\|patch\d*\|configure2_13\|configure\|ant\|GNUconfigure\|setup\|find_lang\|makeinstall\|cmake\|scons\|waf\|useradd\|groupadd\|addusertogroup\|banner\|service\|env_update\|py_o\?comp\|py_postclean\|py_lint\|\(openldap_schema\|webapp\)_\(un\)\?register\|depmod\|pear_package_\(setup\|install\)\|\(build\|install\)_kernel_modules\|php_webserver_restart\|php4_webserver_restart\|update_browser_plugins\|gconf_schema_\(un\)?install\|glib_compile_schemas\|scrollkeeper_update_post\(un\)?\|update_icon_cache\|update_mime_database\|undos\|nagios_nrpe\|cacti_import_template\)\>'
217         \ end='^%'me=e-1
218         \ contains=specSpecialVariables,specVariables,@specCommands,specVariables,shDo,shFor,shCaseEsac,specNoNumberHilite,specCommandOpts,shComment,shIf,specSpecialChar,specMacroIdentifier,specSectionMacroArea,specSectionMacroBracketArea,shOperator,shQuote1,shQuote2,specSectionMacroBcondArea
219 " XXX don't forget to update specMacro when updating specScriptArea skip definition
220
221 " %% Changelog Section %%
222 syn region specChangelogArea matchgroup=specSection start='^%changelog' end='^%'me=e-1
223         \ contains=specEmail,specURL,specWeekday,specMonth,specNumber,specComment,specLicense,specRevision,specLogMessage,specLogError
224
225 syn match specRevision contained "^Revision [.0-9]\+  [-/0-9]\+ [:0-9]\+  [a-zA-Z0-9.]\+$"
226 syn region specLogMessage contained start="^[- ] " end="$" contains=specLogError,specURL,specEmail
227 syn match specLogError contained "%%"
228
229 " ------------------------------------------------------------------------------
230 " here's the shell syntax for all the Script Sections
231
232 " sh-like comment style, only valid in script part
233 syn match shComment contained '#.*$' contains=@specCommentGroup
234
235 syn region shQuote1 contained matchgroup=shQuoteDelim start=+'+ skip=+\\'+ end=+'+ contains=specMacroIdentifier
236 syn region shQuote2 contained matchgroup=shQuoteDelim start=+"+ skip=+\\"+ end=+"+ contains=specVariables,specMacroIdentifier,specSectionMacroBcondArea
237
238 syn match shOperator contained '[><|!&;]\|[!=]='
239 syn region shDo transparent matchgroup=specBlock start="\(^\|\s\)do\(\s\|$\)" end="\(^\|\s\)done\(\s\|$\)" contains=ALLBUT,shDoError,shCase,specPreAmble,@specListedFiles,@specLimitedVisibility
240 syn region shIf transparent matchgroup=specBlock start="\(^\|\s\)if\(\s\|$\)" end="\(^\|\s\)fi\(\s\|$\)" contains=ALLBUT,shIfError,shCase,@specListedFiles,@specLimitedVisibility
241 syn region shFor  matchgroup=specBlock start="\(^\|\s\)for\(\s\|$\)" end="\(^\|\s\)in\(\s\|$\)" contains=ALLBUT,shInError,shCase,@specListedFiles,@specLimitedVisibility
242
243 syn region shCaseEsac transparent matchgroup=specBlock start="\(^\|\s\)case\(\s\|$\)" matchgroup=NONE end="\(^\|\s\)in\(\s\|$\)"me=s-1 contains=ALLBUT,@specListedFiles,@specLimitedVisibility nextgroup=shCaseEsac
244 syn region shCaseEsac matchgroup=specBlock start="\(^\|\s\)in\(\s\|$\)" end="\(^\|\s\)esac\(\s\|$\)" contains=ALLBUT,@specListedFilesBin,@specLimitedVisibility
245 syn region shCase matchgroup=specBlock contained start=")"  end=";;" contains=ALLBUT,shCase,@specListedFiles,@specLimitedVisibility
246
247 syn sync match shDoSync       grouphere  shDo       "\<do\>"
248 syn sync match shDoSync       groupthere shDo       "\<done\>"
249 syn sync match shIfSync       grouphere  shIf       "\<if\>"
250 syn sync match shIfSync       groupthere shIf       "\<fi\>"
251 syn sync match shForSync      grouphere  shFor      "\<for\>"
252 syn sync match shForSync      groupthere shFor      "\<in\>"
253 syn sync match shCaseEsacSync grouphere  shCaseEsac "\<case\>"
254 syn sync match shCaseEsacSync groupthere shCaseEsac "\<esac\>"
255
256 syn region specIf  matchgroup=specBlock start="%ifosf\|%ifos\|%ifnos\|%ifarch\|%ifnarch\|ifdef\|ifndef\|%if\|%else"  end='%endif' contains=ALLBUT,specOutSkip,specOut2,@specLimitedVisibility
257
258 " %if 0 handing
259 if exists("spec_if0")
260     syn region specOut start="^\s*%if\s\+0$" end="$" contains=specOut2
261     syn region specOut2 contained start="%if\s\+0" end="^\s*%\(endif\>\|else\>\)" contains=specOutSkip
262
263     syn region specOutSkip contained start="^\s*%if\>" end="^\s*%endif\>" contains=specOutSkip
264
265     syn sync match specIfSync     grouphere  specIf     "%ifarch\|%ifos\|%ifnos"
266     syn sync match specIfSync     groupthere specIf     "%endIf"
267 endif
268
269 " Define the default highlighting.
270 " For version 5.7 and earlier: only when not done already
271 " For version 5.8 and later: only when an item doesn't have highlighting yet
272 if version >= 508 || !exists("did_spec_syntax_inits")
273   if version < 508
274     let did_spec_syntax_inits = 1
275     command -nargs=+ HiLink hi link <args>
276   else
277     command -nargs=+ HiLink hi def link <args>
278   endif
279
280   "main types color definitions
281   HiLink specSection                    Structure
282   HiLink specSectionMacro               Macro
283   HiLink specWWWlink                    PreProc
284   HiLink specOpts                       Operator
285
286   "yes, it's ugly, but white is sooo cool
287   if &background == "dark"
288     hi def specGlobalMacro              ctermfg=white
289   else
290     HiLink specGlobalMacro              Identifier
291   endif
292
293   "sh colors
294   HiLink shComment                      Comment
295   HiLink shIf                           Statement
296   HiLink shOperator                     Special
297   HiLink shQuote1                       String
298   HiLink shQuote2                       String
299   HiLink shQuoteDelim                   Statement
300
301   " spec colors
302   HiLink specBlock                      Function
303   HiLink specBcond                      Function
304   HiLink specConfOpts                   specOpts
305   HiLink specConfOptsBcond              Function
306   HiLink specConfOptsName               specOpts
307   HiLink specColon                      Special
308   HiLink specCommand                    Statement
309   HiLink specPreambleField              Statement
310   HiLink specCommandOpts                specOpts
311   HiLink specCommandSpecial             Special
312   HiLink specComment                    Comment
313   HiLink specConfigure                  specCommand
314   HiLink specDate                       String
315   HiLink specPreAmbleCharset            String
316   HiLink specDescriptionCharset         String
317   HiLink specDescriptionLimit           Error
318   HiLink specDescriptionOpts            specOpts
319   HiLink specEmail                      specWWWlink
320   HiLink specError                      Error
321   HiLink specFilesDirective             specSectionMacro
322   HiLink specAttr                       specSectionMacro
323   HiLink specFilesOpts                  specOpts
324   HiLink specLicense                    String
325   HiLink specLicenseWarning             specError
326   HiLink specMacroNameLocal             specGlobalMacro
327   HiLink specMacroNameOther             specGlobalMacro
328   HiLink specManpageFile                NONE
329   HiLink specMonth                      specDate
330   HiLink specNoNumberHilite             NONE
331   HiLink specNumber                     Number
332   HiLink specPackageOpts                specOpts
333   HiLink specPercent                    Special
334   HiLink specSpecialChar                Special
335   HiLink specSubstChar                  Special
336   HiLink specSpecialVariables           specGlobalMacro
337   HiLink specSpecialVariablesNames      specGlobalMacro
338   HiLink specTarCommand                 specCommand
339   HiLink specTodo                       Todo
340   HiLink specMacro                      Macro
341   HiLink specURL                        specWWWlink
342   HiLink specURLMacro                   specWWWlink
343   HiLink specVariables                  Identifier
344   HiLink specWeekday                    specDate
345   HiLink specListedFilesBin             Statement
346   HiLink specListedFilesDoc             Statement
347   HiLink specListedFilesEtc             Statement
348   HiLink specListedFilesLib             Statement
349   HiLink specListedFilesPrefix          Statement
350   HiLink specListedFilesShare           Statement
351
352   HiLink specRevision                   Number
353   HiLink specLogMessage                 Identifier
354   HiLink specLogError                   Error
355
356   HiLink specOutSkip            specOut
357   HiLink specOut2            specOut
358   HiLink specOut             Comment
359
360   delcommand HiLink
361 endif
362
363 let b:current_syntax = "spec"
364
365 " vim: ts=8
This page took 0.091885 seconds and 3 git commands to generate.