annotate runtime/syntax/inittab.vim @ 4278:9b772e48f79e

Updated runtime files.
author Bram Moolenaar <bram@vim.org>
date Fri, 12 Apr 2013 15:09:51 +0200
parents 3fc0f57ecb91
children 43efa4f5a8ea
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 " This is a GENERATED FILE. Please always refer to source file at the URI below.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3 " Language: SysV-compatible init process control file `inittab'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
4 " Maintainer: David Ne\v{c}as (Yeti) <yeti@physics.muni.cz>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5 " Last Change: 2002-09-13
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6 " URL: http://physics.muni.cz/~yeti/download/syntax/inittab.vim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 " Setup
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 if version >= 600
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 if exists("b:current_syntax")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 syntax clear
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 syn case match
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 " Base constructs
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 syn match inittabError "[^:]\+:"me=e-1 contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 syn match inittabError "[^:]\+$" contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 syn match inittabComment "^[#:].*$" contains=inittabFixme
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 syn match inittabComment "#.*$" contained contains=inittabFixme
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 syn keyword inittabFixme FIXME TODO XXX NOT
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 " Shell
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 syn region inittabShString start=+"+ end=+"+ skip=+\\\\\|\\\"+ contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 syn region inittabShString start=+'+ end=+'+ contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 syn match inittabShOption "\s[-+][[:alnum:]]\+"ms=s+1 contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 syn match inittabShOption "\s--[:alnum:][-[:alnum:]]*"ms=s+1 contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 syn match inittabShCommand "/\S\+" contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 syn cluster inittabSh add=inittabShOption,inittabShString,inittabShCommand
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34 " Keywords
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 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
36
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37 " Line parser
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 syn match inittabId "^[[:alnum:]~]\{1,4}" nextgroup=inittabColonRunLevels,inittabError
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 syn match inittabColonRunLevels ":" contained nextgroup=inittabRunLevels,inittabColonAction,inittabError
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40 syn match inittabRunLevels "[0-6A-Ca-cSs]\+" contained nextgroup=inittabColonAction,inittabError
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41 syn match inittabColonAction ":" contained nextgroup=inittabAction,inittabError
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42 syn match inittabAction "\w\+" contained nextgroup=inittabColonProcess,inittabError contains=inittabActionName
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43 syn match inittabColonProcess ":" contained nextgroup=inittabProcessPlus,inittabProcess,inittabError
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44 syn match inittabProcessPlus "+" contained nextgroup=inittabProcess,inittabError
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45 syn region inittabProcess start="/" end="$" transparent oneline contained contains=@inittabSh,inittabComment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47 " Define the default highlighting
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48 if version >= 508 || !exists("did_inittab_syntax_inits")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49 if version < 508
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50 let did_inittab_syntax_inits = 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51 command -nargs=+ HiLink hi link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53 command -nargs=+ HiLink hi def link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
55
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56 HiLink inittabComment Comment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
57 HiLink inittabFixme Todo
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
58 HiLink inittabActionName Type
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
59 HiLink inittabError Error
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
60 HiLink inittabId Identifier
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
61 HiLink inittabRunLevels Special
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
62
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
63 HiLink inittabColonProcess inittabColon
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
64 HiLink inittabColonAction inittabColon
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
65 HiLink inittabColonRunLevels inittabColon
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
66 HiLink inittabColon PreProc
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
67
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
68 HiLink inittabShString String
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
69 HiLink inittabShOption Special
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
70 HiLink inittabShCommand Statement
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
71
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
72 delcommand HiLink
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
73 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
74
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
75 let b:current_syntax = "inittab"