mirror of
https://github.com/vim/vim.git
synced 2025-07-04 23:07:33 -04:00
runtime(awk): Highlight more awk comments in syntax script
closes: #15944 Signed-off-by: John M Devin <john.m.devin@gmail.com> Signed-off-by: Doug Kearns <dougkearns@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
parent
d69ffbe4bc
commit
1e2007e643
@ -2,7 +2,7 @@
|
|||||||
" Language: awk, nawk, gawk, mawk
|
" Language: awk, nawk, gawk, mawk
|
||||||
" Maintainer: Doug Kearns <dougkearns@gmail.com>
|
" Maintainer: Doug Kearns <dougkearns@gmail.com>
|
||||||
" Previous Maintainer: Antonio Colombo <azc100@gmail.com>
|
" Previous Maintainer: Antonio Colombo <azc100@gmail.com>
|
||||||
" Last Change: 2020 Aug 18
|
" Last Change: 2024 Oct 28
|
||||||
|
|
||||||
" AWK ref. is: Alfred V. Aho, Brian W. Kernighan, Peter J. Weinberger
|
" AWK ref. is: Alfred V. Aho, Brian W. Kernighan, Peter J. Weinberger
|
||||||
" The AWK Programming Language, Addison-Wesley, 1988
|
" The AWK Programming Language, Addison-Wesley, 1988
|
||||||
@ -92,7 +92,7 @@ syn match awkSpecialCharacter display contained "\\x[0-9A-Fa-f]\+"
|
|||||||
syn match awkFieldVars "\$\d\+"
|
syn match awkFieldVars "\$\d\+"
|
||||||
|
|
||||||
" catch errors caused by wrong parenthesis
|
" catch errors caused by wrong parenthesis
|
||||||
syn region awkParen transparent start="(" end=")" contains=ALLBUT,awkParenError,awkSpecialCharacter,awkArrayElement,awkArrayArray,awkTodo,awkRegExp,awkBrktRegExp,awkBrackets,awkCharClass,awkComment
|
syn region awkParen transparent start="(" end=")" contains=ALLBUT,awkParenError,awkSpecialCharacter,awkArrayElement,awkArrayArray,awkTodo,awkRegExp,awkBrktRegExp,awkBrackets,awkCharClass
|
||||||
syn match awkParenError display ")"
|
syn match awkParenError display ")"
|
||||||
"syn match awkInParen display contained "[{}]"
|
"syn match awkInParen display contained "[{}]"
|
||||||
|
|
||||||
|
20
runtime/syntax/testdir/dumps/awk_00.dump
Normal file
20
runtime/syntax/testdir/dumps/awk_00.dump
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
>{+0&#ffffff0| |#+0#0000e05&| |C|o|m@1|e|n|t| |1| +0#0000000&@61
|
||||||
|
@4|f+0#af5f00255&|o|r| +0#0000000&|(|i| |=+0#e000e06&| +0#0000000&|0+0#e000002&|;+0#e000e06&| +0#0000000&|#+0#0000e05&| |C|o|m@1|e|n|t| |2| +0#0000000&@47
|
||||||
|
@9|i| |<| |1+0#e000002&|;+0#e000e06&| +0#0000000&|#+0#0000e05&| |C|o|m@1|e|n|t| |3| +0#0000000&@47
|
||||||
|
@9|i|++0#e000e06&@1|)+0#0000000&| |#+0#0000e05&| |C|o|m@1|e|n|t| |4| +0#0000000&@49
|
||||||
|
@4|{| |#+0#0000e05&| |C|o|m@1|e|n|t| |5| +0#0000000&@57
|
||||||
|
@8|p+0#af5f00255&|r|i|n|t| +0#0000000&|#+0#0000e05&| |C|o|m@1|e|n|t| |6| +0#0000000&@49
|
||||||
|
@4|}| |#+0#0000e05&| |C|o|m@1|e|n|t| |7| +0#0000000&@57
|
||||||
|
|}| |#+0#0000e05&| |C|o|m@1|e|n|t| |8| +0#0000000&@61
|
||||||
|
@75
|
||||||
|
|~+0#4040ff13&| @73
|
||||||
|
|~| @73
|
||||||
|
|~| @73
|
||||||
|
|~| @73
|
||||||
|
|~| @73
|
||||||
|
|~| @73
|
||||||
|
|~| @73
|
||||||
|
|~| @73
|
||||||
|
|~| @73
|
||||||
|
|~| @73
|
||||||
|
| +0#0000000&@56|1|,|1| @10|A|l@1|
|
9
runtime/syntax/testdir/input/awk.awk
Normal file
9
runtime/syntax/testdir/input/awk.awk
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
{ # Comment 1
|
||||||
|
for (i = 0; # Comment 2
|
||||||
|
i < 1; # Comment 3
|
||||||
|
i++) # Comment 4
|
||||||
|
{ # Comment 5
|
||||||
|
print # Comment 6
|
||||||
|
} # Comment 7
|
||||||
|
} # Comment 8
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user