1" Vim syntax file 2" This is a GENERATED FILE. Please always refer to source file at the URI below. 3" Language: SysV-compatible init process control file `inittab' 4" Maintainer: David Ne\v{c}as (Yeti) <[email protected]> 5" Last Change: 2002-09-13 6" URL: http://physics.muni.cz/~yeti/download/syntax/inittab.vim 7 8" Setup 9" quit when a syntax file was already loaded 10if exists("b:current_syntax") 11 finish 12endif 13 14syn case match 15 16" Base constructs 17syn match inittabError "[^:]\+:"me=e-1 contained 18syn match inittabError "[^:]\+$" contained 19syn match inittabComment "^[#:].*$" contains=inittabFixme 20syn match inittabComment "#.*$" contained contains=inittabFixme 21syn keyword inittabFixme FIXME TODO XXX NOT 22 23" Shell 24syn region inittabShString start=+"+ end=+"+ skip=+\\\\\|\\\"+ contained 25syn region inittabShString start=+'+ end=+'+ contained 26syn match inittabShOption "\s[-+][[:alnum:]]\+"ms=s+1 contained 27syn match inittabShOption "\s--[:alnum:][-[:alnum:]]*"ms=s+1 contained 28syn match inittabShCommand "/\S\+" contained 29syn cluster inittabSh add=inittabShOption,inittabShString,inittabShCommand 30 31" Keywords 32syn keyword inittabActionName respawn wait once boot bootwait off ondemand sysinit powerwait powerfail powerokwait powerfailnow ctrlaltdel kbrequest initdefault contained 33 34" Line parser 35syn match inittabId "^[[:alnum:]~]\{1,4}" nextgroup=inittabColonRunLevels,inittabError 36syn match inittabColonRunLevels ":" contained nextgroup=inittabRunLevels,inittabColonAction,inittabError 37syn match inittabRunLevels "[0-6A-Ca-cSs]\+" contained nextgroup=inittabColonAction,inittabError 38syn match inittabColonAction ":" contained nextgroup=inittabAction,inittabError 39syn match inittabAction "\w\+" contained nextgroup=inittabColonProcess,inittabError contains=inittabActionName 40syn match inittabColonProcess ":" contained nextgroup=inittabProcessPlus,inittabProcess,inittabError 41syn match inittabProcessPlus "+" contained nextgroup=inittabProcess,inittabError 42syn region inittabProcess start="/" end="$" transparent oneline contained contains=@inittabSh,inittabComment 43 44" Define the default highlighting 45 46hi def link inittabComment Comment 47hi def link inittabFixme Todo 48hi def link inittabActionName Type 49hi def link inittabError Error 50hi def link inittabId Identifier 51hi def link inittabRunLevels Special 52 53hi def link inittabColonProcess inittabColon 54hi def link inittabColonAction inittabColon 55hi def link inittabColonRunLevels inittabColon 56hi def link inittabColon PreProc 57 58hi def link inittabShString String 59hi def link inittabShOption Special 60hi def link inittabShCommand Statement 61 62 63let b:current_syntax = "inittab" 64