annotate runtime/syntax/sysctl.vim @ 16397:7a942d92980d v8.1.1203

patch 8.1.1203: some autocmd tests are old style commit https://github.com/vim/vim/commit/69ea587289b03e23a9fb96adffd6e8173cbc5896 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Apr 25 20:29:00 2019 +0200 patch 8.1.1203: some autocmd tests are old style Problem: Some autocmd tests are old style. Solution: Turn the tests into new style. (Yegappan Lakshmanan, closes https://github.com/vim/vim/issues/4295)
author Bram Moolenaar <Bram@vim.org>
date Thu, 25 Apr 2019 20:30:05 +0200
parents 1218c5353e2b
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
375
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
1 " Vim syntax file
11062
1218c5353e2b Runtime file updates.
Christian Brabandt <cb@256bit.org>
parents: 2826
diff changeset
2 " Language: sysctl.conf(5) configuration file
1218c5353e2b Runtime file updates.
Christian Brabandt <cb@256bit.org>
parents: 2826
diff changeset
3 " Previous Maintainer: Nikolai Weibull <now@bitwi.se>
1218c5353e2b Runtime file updates.
Christian Brabandt <cb@256bit.org>
parents: 2826
diff changeset
4 " Latest Revision: 2011-05-02
375
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
5
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
6 if exists("b:current_syntax")
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
7 finish
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
8 endif
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
9
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
10 let s:cpo_save = &cpo
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
11 set cpo&vim
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
12
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
13 syn match sysctlBegin display '^'
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
14 \ nextgroup=sysctlToken,sysctlComment skipwhite
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
15
2826
3c7da93eb7f9 Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 839
diff changeset
16 syn match sysctlToken contained display '[^=]\+'
375
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
17 \ nextgroup=sysctlTokenEq skipwhite
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
18
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
19 syn match sysctlTokenEq contained display '=' nextgroup=sysctlValue skipwhite
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
20
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
21 syn region sysctlValue contained display oneline
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
22 \ matchgroup=sysctlValue start='\S'
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
23 \ matchgroup=Normal end='\s*$'
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
24
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
25 syn keyword sysctlTodo contained TODO FIXME XXX NOTE
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
26
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
27 syn region sysctlComment display oneline start='^\s*[#;]' end='$'
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
28 \ contains=sysctlTodo,@Spell
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
29
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
30 hi def link sysctlTodo Todo
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
31 hi def link sysctlComment Comment
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
32 hi def link sysctlToken Identifier
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
33 hi def link sysctlTokenEq Operator
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
34 hi def link sysctlValue String
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
35
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
36 let b:current_syntax = "sysctl"
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
37
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
38 let &cpo = s:cpo_save
f14cbd913415 updated for version 7.0097
vimboss
parents:
diff changeset
39 unlet s:cpo_save