Mercurial > vim
annotate runtime/syntax/inittab.vim @ 13620:4faf77b96432 v8.0.1682
patch 8.0.1682: auto indenting breaks inserting a block
commit https://github.com/vim/vim/commit/8c87a2b1fec85e4aac33f71586ac1514536fc66b
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Apr 10 13:15:47 2018 +0200
patch 8.0.1682: auto indenting breaks inserting a block
Problem: Auto indenting breaks inserting a block.
Solution: Do not check for cursor movement if indent was changed. (Christian
Brabandt, closes #2778)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Tue, 10 Apr 2018 13:30:07 +0200 |
parents | 46763b01cd9a |
children | daa71bf6b546 |
rev | line source |
---|---|
7 | 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) <yeti@physics.muni.cz> | |
5 " Last Change: 2002-09-13 | |
6 " URL: http://physics.muni.cz/~yeti/download/syntax/inittab.vim | |
7 | |
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 | 12 endif |
13 | |
14 syn case match | |
15 | |
16 " Base constructs | |
17 syn match inittabError "[^:]\+:"me=e-1 contained | |
18 syn match inittabError "[^:]\+$" contained | |
19 syn match inittabComment "^[#:].*$" contains=inittabFixme | |
20 syn match inittabComment "#.*$" contained contains=inittabFixme | |
21 syn keyword inittabFixme FIXME TODO XXX NOT | |
22 | |
23 " Shell | |
24 syn region inittabShString start=+"+ end=+"+ skip=+\\\\\|\\\"+ contained | |
25 syn region inittabShString start=+'+ end=+'+ contained | |
26 syn match inittabShOption "\s[-+][[:alnum:]]\+"ms=s+1 contained | |
27 syn match inittabShOption "\s--[:alnum:][-[:alnum:]]*"ms=s+1 contained | |
28 syn match inittabShCommand "/\S\+" contained | |
29 syn cluster inittabSh add=inittabShOption,inittabShString,inittabShCommand | |
30 | |
31 " Keywords | |
32 syn keyword inittabActionName respawn wait once boot bootwait off ondemand sysinit powerwait powerfail powerokwait powerfailnow ctrlaltdel kbrequest initdefault contained | |
33 | |
34 " Line parser | |
35 syn match inittabId "^[[:alnum:]~]\{1,4}" nextgroup=inittabColonRunLevels,inittabError | |
36 syn match inittabColonRunLevels ":" contained nextgroup=inittabRunLevels,inittabColonAction,inittabError | |
37 syn match inittabRunLevels "[0-6A-Ca-cSs]\+" contained nextgroup=inittabColonAction,inittabError | |
38 syn match inittabColonAction ":" contained nextgroup=inittabAction,inittabError | |
39 syn match inittabAction "\w\+" contained nextgroup=inittabColonProcess,inittabError contains=inittabActionName | |
40 syn match inittabColonProcess ":" contained nextgroup=inittabProcessPlus,inittabProcess,inittabError | |
41 syn match inittabProcessPlus "+" contained nextgroup=inittabProcess,inittabError | |
42 syn region inittabProcess start="/" end="$" transparent oneline contained contains=@inittabSh,inittabComment | |
43 | |
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 | 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 | 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 | 61 |
62 | |
63 let b:current_syntax = "inittab" |