annotate runtime/syntax/inittab.vim @ 17206:8ca93f88b84a v8.1.1602

patch 8.1.1602: popup window cannot overflow on the left or right commit https://github.com/vim/vim/commit/711d02c96da996e3423a6518909687e1d45ce45a Author: Bram Moolenaar <Bram@vim.org> Date: Fri Jun 28 04:06:50 2019 +0200 patch 8.1.1602: popup window cannot overflow on the left or right Problem: Popup window cannot overflow on the left or right. Solution: Only set the "fixed" option when it is in the dict. Set w_leftcol to allow for the popup overflowing on the left and use it when applying the mask.
author Bram Moolenaar <Bram@vim.org>
date Fri, 28 Jun 2019 04:15:05 +0200
parents 46763b01cd9a
children daa71bf6b546
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
10048
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 7
diff changeset
9 " 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
10 if exists("b:current_syntax")
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 7
diff changeset
11 finish
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 syn case match
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 " Base constructs
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 syn match inittabError "[^:]\+:"me=e-1 contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 syn match inittabError "[^:]\+$" contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 syn match inittabComment "^[#:].*$" contains=inittabFixme
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 syn match inittabComment "#.*$" contained contains=inittabFixme
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 syn keyword inittabFixme FIXME TODO XXX NOT
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 " Shell
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 syn region inittabShString start=+"+ end=+"+ skip=+\\\\\|\\\"+ contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 syn region inittabShString start=+'+ end=+'+ contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 syn match inittabShOption "\s[-+][[:alnum:]]\+"ms=s+1 contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 syn match inittabShOption "\s--[:alnum:][-[:alnum:]]*"ms=s+1 contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 syn match inittabShCommand "/\S\+" contained
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 syn cluster inittabSh add=inittabShOption,inittabShString,inittabShCommand
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 " Keywords
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 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
33
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34 " Line parser
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 syn match inittabId "^[[:alnum:]~]\{1,4}" nextgroup=inittabColonRunLevels,inittabError
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 syn match inittabColonRunLevels ":" contained nextgroup=inittabRunLevels,inittabColonAction,inittabError
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37 syn match inittabRunLevels "[0-6A-Ca-cSs]\+" contained nextgroup=inittabColonAction,inittabError
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 syn match inittabColonAction ":" contained nextgroup=inittabAction,inittabError
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 syn match inittabAction "\w\+" contained nextgroup=inittabColonProcess,inittabError contains=inittabActionName
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40 syn match inittabColonProcess ":" contained nextgroup=inittabProcessPlus,inittabProcess,inittabError
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41 syn match inittabProcessPlus "+" contained nextgroup=inittabProcess,inittabError
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42 syn region inittabProcess start="/" end="$" transparent oneline contained contains=@inittabSh,inittabComment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44 " Define the default highlighting
10048
43efa4f5a8ea commit https://github.com/vim/vim/commit/89bcfda6834aba724d12554a34b9ed49f5789fd5
Christian Brabandt <cb@256bit.org>
parents: 7
diff changeset
45
10051
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
46 hi def link inittabComment Comment
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
47 hi def link inittabFixme Todo
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
48 hi def link inittabActionName Type
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
49 hi def link inittabError Error
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
50 hi def link inittabId Identifier
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
51 hi def link inittabRunLevels Special
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52
10051
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
53 hi def link inittabColonProcess inittabColon
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
54 hi def link inittabColonAction inittabColon
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
55 hi def link inittabColonRunLevels inittabColon
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
56 hi def link inittabColon PreProc
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
57
10051
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
58 hi def link inittabShString String
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
59 hi def link inittabShOption Special
46763b01cd9a commit https://github.com/vim/vim/commit/f37506f60f87d52a9e8850e30067645e2b13783c
Christian Brabandt <cb@256bit.org>
parents: 10048
diff changeset
60 hi def link inittabShCommand Statement
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
61
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
62
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
63 let b:current_syntax = "inittab"