Mercurial > vim
annotate runtime/syntax/inittab.vim @ 20303:98e7b880b7b1 v8.2.0707
patch 8.2.0707: Vim9 function test fails
Commit: https://github.com/vim/vim/commit/f391586f3f6a304d3bb0160ab75bdd9d758bd2da
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu May 7 14:37:19 2020 +0200
patch 8.2.0707: Vim9 function test fails
Problem: Vim9 function test fails.
Solution: Adjust expected error code.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 07 May 2020 14:45:04 +0200 |
parents | daa71bf6b546 |
children |
rev | line source |
---|---|
7 | 1 " Vim syntax file |
2 " Language: SysV-compatible init process control file `inittab' | |
18664 | 3 " Maintainer: Donovan Keohane <donovan.keohane@gmail.com> |
4 " Previous Maintainer: David Ne\v{c}as (Yeti) <yeti@physics.muni.cz> | |
5 " Last Change: 2019-11-19 | |
7 | 6 |
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 | 11 endif |
12 | |
13 syn case match | |
14 | |
15 " Base constructs | |
16 syn match inittabError "[^:]\+:"me=e-1 contained | |
17 syn match inittabError "[^:]\+$" contained | |
18 syn match inittabComment "^[#:].*$" contains=inittabFixme | |
19 syn match inittabComment "#.*$" contained contains=inittabFixme | |
20 syn keyword inittabFixme FIXME TODO XXX NOT | |
21 | |
22 " Shell | |
23 syn region inittabShString start=+"+ end=+"+ skip=+\\\\\|\\\"+ contained | |
24 syn region inittabShString start=+'+ end=+'+ contained | |
25 syn match inittabShOption "\s[-+][[:alnum:]]\+"ms=s+1 contained | |
26 syn match inittabShOption "\s--[:alnum:][-[:alnum:]]*"ms=s+1 contained | |
18664 | 27 syn match inittabShCommand "\S\+" contained |
7 | 28 syn cluster inittabSh add=inittabShOption,inittabShString,inittabShCommand |
29 | |
30 " Keywords | |
31 syn keyword inittabActionName respawn wait once boot bootwait off ondemand sysinit powerwait powerfail powerokwait powerfailnow ctrlaltdel kbrequest initdefault contained | |
32 | |
33 " Line parser | |
34 syn match inittabId "^[[:alnum:]~]\{1,4}" nextgroup=inittabColonRunLevels,inittabError | |
35 syn match inittabColonRunLevels ":" contained nextgroup=inittabRunLevels,inittabColonAction,inittabError | |
36 syn match inittabRunLevels "[0-6A-Ca-cSs]\+" contained nextgroup=inittabColonAction,inittabError | |
37 syn match inittabColonAction ":" contained nextgroup=inittabAction,inittabError | |
38 syn match inittabAction "\w\+" contained nextgroup=inittabColonProcess,inittabError contains=inittabActionName | |
39 syn match inittabColonProcess ":" contained nextgroup=inittabProcessPlus,inittabProcess,inittabError | |
40 syn match inittabProcessPlus "+" contained nextgroup=inittabProcess,inittabError | |
18664 | 41 syn region inittabProcess start="\S" end="$" transparent oneline contained contains=@inittabSh,inittabComment |
7 | 42 |
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 | 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 | 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 | 60 |
61 | |
62 let b:current_syntax = "inittab" |