xref: /vim-8.2.3635/runtime/syntax/sysctl.vim (revision 5f1920ad)
1" Vim syntax file
2" Language:             sysctl.conf(5) configuration file
3" Previous Maintainer:  Nikolai Weibull <[email protected]>
4" Latest Revision:      2011-05-02
5
6if exists("b:current_syntax")
7  finish
8endif
9
10let s:cpo_save = &cpo
11set cpo&vim
12
13syn match   sysctlBegin   display '^'
14                          \ nextgroup=sysctlToken,sysctlComment skipwhite
15
16syn match   sysctlToken   contained display '[^=]\+'
17                          \ nextgroup=sysctlTokenEq skipwhite
18
19syn match   sysctlTokenEq contained display '=' nextgroup=sysctlValue skipwhite
20
21syn region  sysctlValue   contained display oneline
22                          \ matchgroup=sysctlValue start='\S'
23                          \ matchgroup=Normal end='\s*$'
24
25syn keyword sysctlTodo    contained TODO FIXME XXX NOTE
26
27syn region  sysctlComment display oneline start='^\s*[#;]' end='$'
28                          \ contains=sysctlTodo,@Spell
29
30hi def link sysctlTodo    Todo
31hi def link sysctlComment Comment
32hi def link sysctlToken   Identifier
33hi def link sysctlTokenEq Operator
34hi def link sysctlValue   String
35
36let b:current_syntax = "sysctl"
37
38let &cpo = s:cpo_save
39unlet s:cpo_save
40