annotate runtime/syntax/inittab.vim @ 30422:52b7188f13b1

Added tag v9.0.0546 for changeset 425b686c5244788b67d1205e696f6d04bedb0f24
author Bram Moolenaar <Bram@vim.org>
date Thu, 22 Sep 2022 17:15:04 +0200
parents daa71bf6b546
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1 " Vim syntax file
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
2 " Language: SysV-compatible init process control file `inittab'
18664
daa71bf6b546 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
3 " Maintainer: Donovan Keohane <donovan.keohane@gmail.com>
daa71bf6b546 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
4 " Previous Maintainer: David Ne\v{c}as (Yeti) <yeti@physics.muni.cz>
daa71bf6b546 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
5 " Last Change: 2019-11-19
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7 " Setup
10048
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 7
diff changeset
8 " quit when a syntax file was already loaded
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 7
diff changeset
9 if exists("b:current_syntax")
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 7
diff changeset
10 finish
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13 syn case match
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 " Base constructs
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 syn match inittabError "[^:]\+:"me=e-1 contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 syn match inittabError "[^:]\+$" contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 syn match inittabComment "^[#:].*$" contains=inittabFixme
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 syn match inittabComment "#.*$" contained contains=inittabFixme
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 syn keyword inittabFixme FIXME TODO XXX NOT
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 " Shell
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 syn region inittabShString start=+"+ end=+"+ skip=+\\\\\|\\\"+ contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 syn region inittabShString start=+'+ end=+'+ contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 syn match inittabShOption "\s[-+][[:alnum:]]\+"ms=s+1 contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 syn match inittabShOption "\s--[:alnum:][-[:alnum:]]*"ms=s+1 contained
18664
daa71bf6b546 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
27 syn match inittabShCommand "\S\+" contained
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 syn cluster inittabSh add=inittabShOption,inittabShString,inittabShCommand
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 " Keywords
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 syn keyword inittabActionName respawn wait once boot bootwait off ondemand sysinit powerwait powerfail powerokwait powerfailnow ctrlaltdel kbrequest initdefault contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 " Line parser
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34 syn match inittabId "^[[:alnum:]~]\{1,4}" nextgroup=inittabColonRunLevels,inittabError
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 syn match inittabColonRunLevels ":" contained nextgroup=inittabRunLevels,inittabColonAction,inittabError
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 syn match inittabRunLevels "[0-6A-Ca-cSs]\+" contained nextgroup=inittabColonAction,inittabError
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37 syn match inittabColonAction ":" contained nextgroup=inittabAction,inittabError
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 syn match inittabAction "\w\+" contained nextgroup=inittabColonProcess,inittabError contains=inittabActionName
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 syn match inittabColonProcess ":" contained nextgroup=inittabProcessPlus,inittabProcess,inittabError
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40 syn match inittabProcessPlus "+" contained nextgroup=inittabProcess,inittabError
18664
daa71bf6b546 Update runtime files.
Bram Moolenaar <Bram@vim.org>
parents: 10051
diff changeset
41 syn region inittabProcess start="\S" end="$" transparent oneline contained contains=@inittabSh,inittabComment
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43 " Define the default highlighting
10048
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 7
diff changeset
44
10051
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
45 hi def link inittabComment Comment
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
46 hi def link inittabFixme Todo
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
47 hi def link inittabActionName Type
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
48 hi def link inittabError Error
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
49 hi def link inittabId Identifier
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
50 hi def link inittabRunLevels Special
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51
10051
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
52 hi def link inittabColonProcess inittabColon
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
53 hi def link inittabColonAction inittabColon
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
54 hi def link inittabColonRunLevels inittabColon
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
55 hi def link inittabColon PreProc
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56
10051
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
57 hi def link inittabShString String
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
58 hi def link inittabShOption Special
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
59 hi def link inittabShCommand Statement
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
60
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
61
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
62 let b:current_syntax = "inittab"