Skip to content

Commit 77f2a92

Browse files
committed
Merge remote-tracking branch 'vim/master'
2 parents 5a07be6 + 14207f4 commit 77f2a92

File tree

17 files changed

+1269
-792
lines changed

17 files changed

+1269
-792
lines changed

runtime/doc/todo.txt

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*todo.txt* For Vim version 8.0. Last change: 2016 Oct 23
1+
*todo.txt* For Vim version 8.0. Last change: 2016 Oct 27
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -37,8 +37,6 @@ not be repeated below, unless there is extra information.
3737
+channel:
3838
- Check for job cleanup more often? Patch from Ozaki Kiichi, 2016 Oct 22.
3939
- Problem with stderr on Windows? (Vincent Rischmann, 2016 Aug 31, #1026)
40-
- On Windows job_stop() stops cmd.exe, not the commands it runs. (#1184)
41-
Patch from Yasuhiro Matsumoto, Oct 21.
4240
- Add 'cwd' argument to start_job(): directory to change to in the child.
4341
check for valid directory before forking.
4442
Part of patch for environment, Yasuhiro Matsumoto, #1160
@@ -103,13 +101,23 @@ Regexp problems:
103101
json_encode(): should convert to utf-8. (Nikolai Pavlov, 2016 Jan 23)
104102
What if there is an invalid character?
105103

104+
Bug: Json with same key should not give internal error. (Lcd, 2016 Oct 26)
105+
Make dict_add give a duplicate key error.
106+
106107
Should json_encode()/json_decode() restrict recursiveness?
107108
Or avoid recursiveness.
108109

110+
Allow using json with empty key? Dict already has it.
111+
112+
Json string with trailing \u should be an error. (Lcd)
113+
109114
Patch to fix conceal mode. (Christian Brabandt, 2016 Oct 23, close #1092)
110115

111116
Patch to reset ex_exitvalue after catch. (Christian Brabandt, 2016 Oct 23)
112117

118+
Patch to deal with changed configure events in GTK 3. (Jan Alexander Steffens,
119+
2016 Oct 23 #1193)
120+
113121
Wrong diff highlighting with three files. (2016 Oct 20, #1186)
114122
Also get E749 on exit.
115123

@@ -146,6 +154,8 @@ E.g. deepcopy(test_null_list())
146154
Patch to make it possible to extend a list with itself.
147155
(Nikolai Pavlov, 2016 Sep 23)
148156

157+
Patch to add Zstandard compressed file support. (Nick Terrell, 2016 Oct 24)
158+
149159
min() and max() spawn lots of error messages if sorted list/dictionary
150160
contains invalid data (Nikolay Pavlov, 2016 Sep 4, #1039)
151161

@@ -184,6 +194,8 @@ cmap using execute() has side effects. (Killthemule, 2016 Aug 17, #983)
184194

185195
Patch to change order of compiler flags. (Yousong Zhou, 2016 Sep 19, #1100)
186196

197+
Patch to order results from taglist(). (Duncan McDougall, 2016 Oct 25)
198+
187199
Patch for :pyx, run python commands depending on the supported version.
188200
(Marc Weber, update from Ken Takata, 2016 Sep 19)
189201

runtime/keymap/kazakh-jcuken.vim

Lines changed: 102 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,102 @@
1+
" Vim Keymap file for kazakh characters, layout 'jcuken', classical variant
2+
3+
" Derived from russian-jcuken.vim by Artem Chuprina <[email protected]>
4+
" Maintainer: Darkhan Kubigenov <[email protected]>
5+
" Last Changed: 2016 Oct 25
6+
7+
" All characters are given literally, conversion to another encoding (e.g.,
8+
" UTF-8) should work.
9+
scriptencoding utf-8
10+
11+
let b:keymap_name = "kk"
12+
13+
loadkeymap
14+
~ ) CYRILLIC CAPITAL LETTER IO
15+
` ( CYRILLIC SMALL LETTER IO
16+
F А CYRILLIC CAPITAL LETTER A
17+
< Б CYRILLIC CAPITAL LETTER BE
18+
D В CYRILLIC CAPITAL LETTER VE
19+
U Г CYRILLIC CAPITAL LETTER GHE
20+
L Д CYRILLIC CAPITAL LETTER DE
21+
T Е CYRILLIC CAPITAL LETTER IE
22+
: Ж CYRILLIC CAPITAL LETTER ZHE
23+
P З CYRILLIC CAPITAL LETTER ZE
24+
B И CYRILLIC CAPITAL LETTER I
25+
Q Й CYRILLIC CAPITAL LETTER SHORT I
26+
R К CYRILLIC CAPITAL LETTER KA
27+
K Л CYRILLIC CAPITAL LETTER EL
28+
V М CYRILLIC CAPITAL LETTER EM
29+
Y Н CYRILLIC CAPITAL LETTER EN
30+
J О CYRILLIC CAPITAL LETTER O
31+
G П CYRILLIC CAPITAL LETTER PE
32+
H Р CYRILLIC CAPITAL LETTER ER
33+
C С CYRILLIC CAPITAL LETTER ES
34+
N Т CYRILLIC CAPITAL LETTER TE
35+
E У CYRILLIC CAPITAL LETTER U
36+
A Ф CYRILLIC CAPITAL LETTER EF
37+
{ Х CYRILLIC CAPITAL LETTER HA
38+
W Ц CYRILLIC CAPITAL LETTER TSE
39+
X Ч CYRILLIC CAPITAL LETTER CHE
40+
I Ш CYRILLIC CAPITAL LETTER SHA
41+
O Щ CYRILLIC CAPITAL LETTER SHCHA
42+
} Ъ CYRILLIC CAPITAL LETTER HARD SIGN
43+
S Ы CYRILLIC CAPITAL LETTER YERU
44+
M Ь CYRILLIC CAPITAL LETTER SOFT SIGN
45+
\" Э CYRILLIC CAPITAL LETTER E
46+
> Ю CYRILLIC CAPITAL LETTER YU
47+
Z Я CYRILLIC CAPITAL LETTER YA
48+
f а CYRILLIC SMALL LETTER A
49+
, б CYRILLIC SMALL LETTER BE
50+
d в CYRILLIC SMALL LETTER VE
51+
u г CYRILLIC SMALL LETTER GHE
52+
l д CYRILLIC SMALL LETTER DE
53+
t е CYRILLIC SMALL LETTER IE
54+
; ж CYRILLIC SMALL LETTER ZHE
55+
p з CYRILLIC SMALL LETTER ZE
56+
b и CYRILLIC SMALL LETTER I
57+
q й CYRILLIC SMALL LETTER SHORT I
58+
r к CYRILLIC SMALL LETTER KA
59+
k л CYRILLIC SMALL LETTER EL
60+
v м CYRILLIC SMALL LETTER EM
61+
y н CYRILLIC SMALL LETTER EN
62+
j о CYRILLIC SMALL LETTER O
63+
g п CYRILLIC SMALL LETTER PE
64+
h р CYRILLIC SMALL LETTER ER
65+
c с CYRILLIC SMALL LETTER ES
66+
n т CYRILLIC SMALL LETTER TE
67+
e у CYRILLIC SMALL LETTER U
68+
a ф CYRILLIC SMALL LETTER EF
69+
[ х CYRILLIC SMALL LETTER HA
70+
w ц CYRILLIC SMALL LETTER TSE
71+
x ч CYRILLIC SMALL LETTER CHE
72+
i ш CYRILLIC SMALL LETTER SHA
73+
o щ CYRILLIC SMALL LETTER SHCHA
74+
] ъ CYRILLIC SMALL LETTER HARD SIGN
75+
s ы CYRILLIC SMALL LETTER YERU
76+
m ь CYRILLIC SMALL LETTER SOFT SIGN
77+
' э CYRILLIC SMALL LETTER E
78+
. ю CYRILLIC SMALL LETTER YU
79+
z я CYRILLIC SMALL LETTER YA
80+
@ Ә CYRILLIC CAPITAL LETTER SCHWA
81+
# І CYRILLIC CAPITAL LETTER BYELORUSSIAN-UKRAINIAN I
82+
$ Ң CYRILLIC CAPITAL LETTER EN WITH DESCENDER
83+
% Ғ CYRILLIC CAPITAL LETTER GHE WITH STROKE
84+
^ ;
85+
& :
86+
* Ү CYRILLIC CAPITAL LETTER STRAIGHT U
87+
( Ұ CYRILLIC CAPITAL LETTER STRAIGHT U WITH STROKE
88+
) Қ CYRILLIC CAPITAL LETTER KA WITH DESCENDER
89+
_ Ө CYRILLIC CAPITAL LETTER BARRED O
90+
+ Һ CYRILLIC CAPITAL LETTER SHHA
91+
1 "
92+
2 ә CYRILLIC SMALL LETTER SCHWA
93+
3 і CYRILLIC SMALL LETTER BYELORUSSIAN-UKRAINIAN I
94+
4 ң CYRILLIC SMALL LETTER EN WITH DESCENDER
95+
5 ғ CYRILLIC SMALL LETTER GHE WITH STROKE
96+
6 ,
97+
7 .
98+
8 ү CYRILLIC SMALL LETTER STRAIGHT U
99+
9 ұ CYRILLIC SMALL LETTER STRAIGHT U WITH STROKE
100+
0 қ CYRILLIC SMALL LETTER KA WITH DESCENDER
101+
- ө CYRILLIC SMALL LETTER BARRED O
102+
= һ CYRILLIC SMALL LETTER SHHA

runtime/syntax/c.vim

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
" Vim syntax file
22
" Language: C
33
" Maintainer: Bram Moolenaar <[email protected]>
4-
" Last Change: 2016 Jul 07
4+
" Last Change: 2016 Oct 27
55

66
" Quit when a (custom) syntax file was already loaded
77
if exists("b:current_syntax")
@@ -358,36 +358,36 @@ if !exists("c_no_c99") " ISO C99
358358
endif
359359

360360
" Accept %: for # (C99)
361-
syn region cPreCondit start="^\s*\(%:\|#\)\s*\(if\|ifdef\|ifndef\|elif\)\>" skip="\\$" end="$" keepend contains=cComment,cCommentL,cCppString,cCharacter,cCppParen,cParenError,cNumbers,cCommentError,cSpaceError
362-
syn match cPreConditMatch display "^\s*\(%:\|#\)\s*\(else\|endif\)\>"
361+
syn region cPreCondit start="^\s*\zs\(%:\|#\)\s*\(if\|ifdef\|ifndef\|elif\)\>" skip="\\$" end="$" keepend contains=cComment,cCommentL,cCppString,cCharacter,cCppParen,cParenError,cNumbers,cCommentError,cSpaceError
362+
syn match cPreConditMatch display "^\s*\zs\(%:\|#\)\s*\(else\|endif\)\>"
363363
if !exists("c_no_if0")
364364
syn cluster cCppOutInGroup contains=cCppInIf,cCppInElse,cCppInElse2,cCppOutIf,cCppOutIf2,cCppOutElse,cCppInSkip,cCppOutSkip
365-
syn region cCppOutWrapper start="^\s*\(%:\|#\)\s*if\s\+0\+\s*\($\|//\|/\*\|&\)" end=".\@=\|$" contains=cCppOutIf,cCppOutElse,@NoSpell fold
366-
syn region cCppOutIf contained start="0\+" matchgroup=cCppOutWrapper end="^\s*\(%:\|#\)\s*endif\>" contains=cCppOutIf2,cCppOutElse
365+
syn region cCppOutWrapper start="^\s*\zs\(%:\|#\)\s*if\s\+0\+\s*\($\|//\|/\*\|&\)" end=".\@=\|$" contains=cCppOutIf,cCppOutElse,@NoSpell fold
366+
syn region cCppOutIf contained start="0\+" matchgroup=cCppOutWrapper end="^\s*\zs\(%:\|#\)\s*endif\>" contains=cCppOutIf2,cCppOutElse
367367
if !exists("c_no_if0_fold")
368-
syn region cCppOutIf2 contained matchgroup=cCppOutWrapper start="0\+" end="^\s*\(%:\|#\)\s*\(else\>\|elif\s\+\(0\+\s*\($\|//\|/\*\|&\)\)\@!\|endif\>\)"me=s-1 contains=cSpaceError,cCppOutSkip,@Spell fold
368+
syn region cCppOutIf2 contained matchgroup=cCppOutWrapper start="0\+" end="^\s*\zs\(%:\|#\)\s*\(else\>\|elif\s\+\(0\+\s*\($\|//\|/\*\|&\)\)\@!\|endif\>\)"me=s-1 contains=cSpaceError,cCppOutSkip,@Spell fold
369369
else
370370
syn region cCppOutIf2 contained matchgroup=cCppOutWrapper start="0\+" end="^\s*\(%:\|#\)\s*\(else\>\|elif\s\+\(0\+\s*\($\|//\|/\*\|&\)\)\@!\|endif\>\)"me=s-1 contains=cSpaceError,cCppOutSkip,@Spell
371371
endif
372-
syn region cCppOutElse contained matchgroup=cCppOutWrapper start="^\s*\(%:\|#\)\s*\(else\|elif\)" end="^\s*\(%:\|#\)\s*endif\>"me=s-1 contains=TOP,cPreCondit
373-
syn region cCppInWrapper start="^\s*\(%:\|#\)\s*if\s\+0*[1-9]\d*\s*\($\|//\|/\*\||\)" end=".\@=\|$" contains=cCppInIf,cCppInElse fold
374-
syn region cCppInIf contained matchgroup=cCppInWrapper start="\d\+" end="^\s*\(%:\|#\)\s*endif\>" contains=TOP,cPreCondit
372+
syn region cCppOutElse contained matchgroup=cCppOutWrapper start="^\s*\zs\(%:\|#\)\s*\(else\|elif\)" end="^\s*\zs\(%:\|#\)\s*endif\>"me=s-1 contains=TOP,cPreCondit
373+
syn region cCppInWrapper start="^\s*\zs\(%:\|#\)\s*if\s\+0*[1-9]\d*\s*\($\|//\|/\*\||\)" end=".\@=\|$" contains=cCppInIf,cCppInElse fold
374+
syn region cCppInIf contained matchgroup=cCppInWrapper start="\d\+" end="^\s*\zs\(%:\|#\)\s*endif\>" contains=TOP,cPreCondit
375375
if !exists("c_no_if0_fold")
376-
syn region cCppInElse contained start="^\s*\(%:\|#\)\s*\(else\>\|elif\s\+\(0*[1-9]\d*\s*\($\|//\|/\*\||\)\)\@!\)" end=".\@=\|$" containedin=cCppInIf contains=cCppInElse2 fold
376+
syn region cCppInElse contained start="^\s*\zs\(%:\|#\)\s*\(else\>\|elif\s\+\(0*[1-9]\d*\s*\($\|//\|/\*\||\)\)\@!\)" end=".\@=\|$" containedin=cCppInIf contains=cCppInElse2 fold
377377
else
378-
syn region cCppInElse contained start="^\s*\(%:\|#\)\s*\(else\>\|elif\s\+\(0*[1-9]\d*\s*\($\|//\|/\*\||\)\)\@!\)" end=".\@=\|$" containedin=cCppInIf contains=cCppInElse2
378+
syn region cCppInElse contained start="^\s*\zs\(%:\|#\)\s*\(else\>\|elif\s\+\(0*[1-9]\d*\s*\($\|//\|/\*\||\)\)\@!\)" end=".\@=\|$" containedin=cCppInIf contains=cCppInElse2
379379
endif
380-
syn region cCppInElse2 contained matchgroup=cCppInWrapper start="^\s*\(%:\|#\)\s*\(else\|elif\)\([^/]\|/[^/*]\)*" end="^\s*\(%:\|#\)\s*endif\>"me=s-1 contains=cSpaceError,cCppOutSkip,@Spell
381-
syn region cCppOutSkip contained start="^\s*\(%:\|#\)\s*\(if\>\|ifdef\>\|ifndef\>\)" skip="\\$" end="^\s*\(%:\|#\)\s*endif\>" contains=cSpaceError,cCppOutSkip
382-
syn region cCppInSkip contained matchgroup=cCppInWrapper start="^\s*\(%:\|#\)\s*\(if\s\+\(\d\+\s*\($\|//\|/\*\||\|&\)\)\@!\|ifdef\>\|ifndef\>\)" skip="\\$" end="^\s*\(%:\|#\)\s*endif\>" containedin=cCppOutElse,cCppInIf,cCppInSkip contains=TOP,cPreProc
380+
syn region cCppInElse2 contained matchgroup=cCppInWrapper start="^\s*\zs\(%:\|#\)\s*\(else\|elif\)\([^/]\|/[^/*]\)*" end="^\s*\zs\(%:\|#\)\s*endif\>"me=s-1 contains=cSpaceError,cCppOutSkip,@Spell
381+
syn region cCppOutSkip contained start="^\s*\zs\(%:\|#\)\s*\(if\>\|ifdef\>\|ifndef\>\)" skip="\\$" end="^\s*\zs\(%:\|#\)\s*endif\>" contains=cSpaceError,cCppOutSkip
382+
syn region cCppInSkip contained matchgroup=cCppInWrapper start="^\s*\zs\(%:\|#\)\s*\(if\s\+\(\d\+\s*\($\|//\|/\*\||\|&\)\)\@!\|ifdef\>\|ifndef\>\)" skip="\\$" end="^\s*\zs\(%:\|#\)\s*endif\>" containedin=cCppOutElse,cCppInIf,cCppInSkip contains=TOP,cPreProc
383383
endif
384384
syn region cIncluded display contained start=+"+ skip=+\\\\\|\\"+ end=+"+
385385
syn match cIncluded display contained "<[^>]*>"
386-
syn match cInclude display "^\s*\(%:\|#\)\s*include\>\s*["<]" contains=cIncluded
386+
syn match cInclude display "^\s*\zs\(%:\|#\)\s*include\>\s*["<]" contains=cIncluded
387387
"syn match cLineSkip "\\$"
388388
syn cluster cPreProcGroup contains=cPreCondit,cIncluded,cInclude,cDefine,cErrInParen,cErrInBracket,cUserLabel,cSpecial,cOctalZero,cCppOutWrapper,cCppInWrapper,@cCppOutInGroup,cFormat,cNumber,cFloat,cOctal,cOctalError,cNumbersCom,cString,cCommentSkip,cCommentString,cComment2String,@cCommentGroup,cCommentStartError,cParen,cBracket,cMulti,cBadBlock
389-
syn region cDefine start="^\s*\(%:\|#\)\s*\(define\|undef\)\>" skip="\\$" end="$" keepend contains=ALLBUT,@cPreProcGroup,@Spell
390-
syn region cPreProc start="^\s*\(%:\|#\)\s*\(pragma\>\|line\>\|warning\>\|warn\>\|error\>\)" skip="\\$" end="$" keepend contains=ALLBUT,@cPreProcGroup,@Spell
389+
syn region cDefine start="^\s*\zs\(%:\|#\)\s*\(define\|undef\)\>" skip="\\$" end="$" keepend contains=ALLBUT,@cPreProcGroup,@Spell
390+
syn region cPreProc start="^\s*\zs\(%:\|#\)\s*\(pragma\>\|line\>\|warning\>\|warn\>\|error\>\)" skip="\\$" end="$" keepend contains=ALLBUT,@cPreProcGroup,@Spell
391391

392392
" Highlight User Labels
393393
syn cluster cMultiGroup contains=cIncluded,cSpecial,cCommentSkip,cCommentString,cComment2String,@cCommentGroup,cCommentStartError,cUserCont,cUserLabel,cBitField,cOctalZero,cCppOutWrapper,cCppInWrapper,@cCppOutInGroup,cFormat,cNumber,cFloat,cOctal,cOctalError,cNumbersCom,cCppParen,cCppBracket,cCppString
@@ -396,21 +396,21 @@ if s:ft ==# 'c' || exists("cpp_no_cpp11")
396396
endif
397397
" Avoid matching foo::bar() in C++ by requiring that the next char is not ':'
398398
syn cluster cLabelGroup contains=cUserLabel
399-
syn match cUserCont display "^\s*\I\i*\s*:$" contains=@cLabelGroup
400-
syn match cUserCont display ";\s*\I\i*\s*:$" contains=@cLabelGroup
399+
syn match cUserCont display "^\s*\zs\I\i*\s*:$" contains=@cLabelGroup
400+
syn match cUserCont display ";\s*\zs\I\i*\s*:$" contains=@cLabelGroup
401401
if s:ft ==# 'cpp'
402-
syn match cUserCont display "^\s*\%(class\|struct\|enum\)\@!\I\i*\s*:[^:]"me=e-1 contains=@cLabelGroup
403-
syn match cUserCont display ";\s*\%(class\|struct\|enum\)\@!\I\i*\s*:[^:]"me=e-1 contains=@cLabelGroup
402+
syn match cUserCont display "^\s*\zs\%(class\|struct\|enum\)\@!\I\i*\s*:[^:]"me=e-1 contains=@cLabelGroup
403+
syn match cUserCont display ";\s*\zs\%(class\|struct\|enum\)\@!\I\i*\s*:[^:]"me=e-1 contains=@cLabelGroup
404404
else
405-
syn match cUserCont display "^\s*\I\i*\s*:[^:]"me=e-1 contains=@cLabelGroup
406-
syn match cUserCont display ";\s*\I\i*\s*:[^:]"me=e-1 contains=@cLabelGroup
405+
syn match cUserCont display "^\s*\zs\I\i*\s*:[^:]"me=e-1 contains=@cLabelGroup
406+
syn match cUserCont display ";\s*\zs\I\i*\s*:[^:]"me=e-1 contains=@cLabelGroup
407407
endif
408408

409409
syn match cUserLabel display "\I\i*" contained
410410

411411
" Avoid recognizing most bitfields as labels
412-
syn match cBitField display "^\s*\I\i*\s*:\s*[1-9]"me=e-1 contains=cType
413-
syn match cBitField display ";\s*\I\i*\s*:\s*[1-9]"me=e-1 contains=cType
412+
syn match cBitField display "^\s*\zs\I\i*\s*:\s*[1-9]"me=e-1 contains=cType
413+
syn match cBitField display ";\s*\zs\I\i*\s*:\s*[1-9]"me=e-1 contains=cType
414414

415415
if exists("c_minlines")
416416
let b:c_minlines = c_minlines

runtime/syntax/sh.vim

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
" Language: shell (sh) Korn shell (ksh) bash (sh)
33
" Maintainer: Charles E. Campbell <[email protected]>
44
" Previous Maintainer: Lennart Schultz <[email protected]>
5-
" Last Change: Aug 31, 2016
6-
" Version: 162
5+
" Last Change: Sep 22, 2016
6+
" Version: 165
77
" URL: http://www.drchip.org/astronaut/vim/index.html#SYNTAX_SH
88
" For options and settings, please use: :help ft-sh-syntax
99
" This file includes many ideas from Eric Brunet ([email protected])
@@ -170,7 +170,7 @@ if exists("b:is_kornshell") || exists("b:is_bash")
170170

171171
" Touch: {{{1
172172
" =====
173-
syn match shTouch '\<touch\>[^;#]*' skipwhite nextgroup=shComment contains=shTouchCmd
173+
syn match shTouch '\<touch\>[^;#]*' skipwhite nextgroup=shComment contains=shTouchCmd,shDoubleQuote,shSingleQuote,shDeref,shDerefSimple
174174
syn match shTouchCmd '\<touch\>' contained
175175
endif
176176

@@ -220,7 +220,7 @@ syn region shSubSh transparent matchgroup=shSubShRegion start="[^(]\zs(" end=")"
220220
"=======
221221
syn region shExpr matchgroup=shRange start="\[" skip=+\\\\\|\\$\|\[+ end="\]" contains=@shTestList,shSpecial
222222
syn region shTest transparent matchgroup=shStatement start="\<test\s" skip=+\\\\\|\\$+ matchgroup=NONE end="[;&|]"me=e-1 end="$" contains=@shExprList1
223-
syn region shNoQuote start='\S' skip='\%(\\\\\)*\\.' end='\ze\s' contained
223+
syn region shNoQuote start='\S' skip='\%(\\\\\)*\\.' end='\ze\s' contained contains=shDerefSimple,shDeref
224224
syn match shAstQuote contained '\*\ze"' nextgroup=shString
225225
syn match shTestOpr contained '[^-+/%]\zs=' skipwhite nextgroup=shTestDoubleQuote,shTestSingleQuote,shTestPattern
226226
syn match shTestOpr contained "<=\|>=\|!=\|==\|=\~\|-.\>\|-\(nt\|ot\|ef\|eq\|ne\|lt\|le\|gt\|ge\)\>\|[!<>]"
@@ -355,7 +355,11 @@ syn region shBkslshDblQuote contained matchgroup=shQuote start=+"+ skip=+\\"+ e
355355
" Comments: {{{1
356356
"==========
357357
syn cluster shCommentGroup contains=shTodo,@Spell
358-
syn keyword shTodo contained COMBAK FIXME TODO XXX
358+
if exists("b:is_bash")
359+
syn match shTodo contained "\<\%(COMBAK\|FIXME\|TODO\|XXX\)\ze:\=\>"
360+
else
361+
syn keyword shTodo contained COMBAK FIXME TODO XXX
362+
endif
359363
syn match shComment "^\s*\zs#.*$" contains=@shCommentGroup
360364
syn match shComment "\s\zs#.*$" contains=@shCommentGroup
361365
syn match shComment contained "#.*$" contains=@shCommentGroup
@@ -381,7 +385,7 @@ ShFoldHereDoc syn region shHereDoc matchgroup=shHereDoc15 start="<<-\s*\\\z([^ \
381385

382386
" Here Strings: {{{1
383387
" =============
384-
" available for: bash; ksh (really should be ksh93 only) but not if it's a posix
388+
" available for: bash; ksh (really should be ksh93 only) but not if its a posix
385389
if exists("b:is_bash") || (exists("b:is_kornshell") && !exists("g:is_posix"))
386390
syn match shHereString "<<<" skipwhite nextgroup=shCmdParenRegion
387391
endif

runtime/syntax/sm.vim

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
" Vim syntax file
22
" Language: sendmail
33
" Maintainer: Charles E. Campbell <[email protected]>
4-
" Last Change: Oct 23, 2014
5-
" Version: 7
4+
" Last Change: Oct 25, 2016
5+
" Version: 8
66
" URL: http://www.drchip.org/astronaut/vim/index.html#SYNTAX_SM
7-
87
if exists("b:current_syntax")
98
finish
109
endif
@@ -62,10 +61,10 @@ hi def link smClause Special
6261
hi def link smClauseError Error
6362
hi def link smComment Comment
6463
hi def link smDefine Statement
65-
hi def link smElse Delimiter
64+
hi def link smElse Delimiter
6665
hi def link smHeader Statement
6766
hi def link smHeaderSep String
68-
hi def link smMesg Special
67+
hi def link smMesg Special
6968
hi def link smPrecedence Number
7069
hi def link smRewrite Statement
7170
hi def link smRewriteComment Comment
@@ -76,7 +75,6 @@ hi def link smRuleset Preproc
7675
hi def link smTrusted Special
7776
hi def link smVar String
7877

79-
8078
let b:current_syntax = "sm"
8179

8280
" vim: ts=18

runtime/syntax/tags.vim

Lines changed: 14 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,31 @@
11
" Language: tags
22
" Maintainer: Charles E. Campbell <[email protected]>
3-
" Last Change: Aug 31, 2016
4-
" Version: 6
3+
" Last Change: Oct 26, 2016
4+
" Version: 7
55
" URL: http://www.drchip.org/astronaut/vim/index.html#SYNTAX_TAGS
66

77
" quit when a syntax file was already loaded
88
if exists("b:current_syntax")
99
finish
1010
endif
1111

12-
syn match tagName "^[^\t]\+" skipwhite nextgroup=tagPath
13-
syn match tagPath "[^\t]\+" contained skipwhite nextgroup=tagAddr contains=tagBaseFile
12+
syn match tagName "^[^\t]\+" skipwhite nextgroup=tagPath
13+
syn match tagPath "[^\t]\+" contained skipwhite nextgroup=tagAddr contains=tagBaseFile
1414
syn match tagBaseFile "[a-zA-Z_]\+[\.a-zA-Z_0-9]*\t"me=e-1 contained
15-
syn match tagAddr "\d*" contained skipwhite nextgroup=tagComment
16-
syn region tagAddr matchgroup=tagDelim start="/" skip="\(\\\\\)*\\/" matchgroup=tagDelim end="$\|/" oneline contained skipwhite nextgroup=tagComment
17-
syn match tagComment ";.*$" contained contains=tagField
15+
syn match tagAddr "\d*" contained skipwhite nextgroup=tagComment
16+
syn region tagAddr matchgroup=tagDelim start="/" skip="\(\\\\\)*\\/" matchgroup=tagDelim end="$\|/" oneline contained skipwhite nextgroup=tagComment
17+
syn match tagComment ";.*$" contained contains=tagField
1818
syn match tagComment "^!_TAG_.*$"
19-
syn match tagField contained "[a-z]*:"
19+
syn match tagField contained "[a-z]*:"
2020

2121
" Define the default highlighting.
2222
if !exists("skip_drchip_tags_inits")
23-
24-
hi def link tagBaseFile PreProc
25-
hi def link tagComment Comment
26-
hi def link tagDelim Delimiter
27-
hi def link tagField Number
28-
hi def link tagName Identifier
29-
hi def link tagPath PreProc
30-
23+
hi def link tagBaseFile PreProc
24+
hi def link tagComment Comment
25+
hi def link tagDelim Delimiter
26+
hi def link tagField Number
27+
hi def link tagName Identifier
28+
hi def link tagPath PreProc
3129
endif
3230

3331
let b:current_syntax = "tags"
34-
35-
" vim: ts=12

0 commit comments

Comments
 (0)