annotate runtime/syntax/awk.vim @ 5535:40aff213baff v7.4.116

updated for version 7.4.116 Problem: When a mapping starts with a space, the typed space does not show up for 'showcmd'. Solution: Show "<20>". (Brook Hong)
author Bram Moolenaar <bram@vim.org>
date Wed, 11 Dec 2013 14:55:01 +0100
parents 1b584a6f446c
children 435956324539
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 " Language: awk, nawk, gawk, mawk
3312
b7811ab264bf updated for version 7.3.423
Bram Moolenaar <bram@vim.org>
parents: 216
diff changeset
3 " Maintainer: Antonio Colombo <azc100@gmail.com>
3513
1b584a6f446c Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3312
diff changeset
4 " Last Change: 2012 May 18
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6 " AWK ref. is: Alfred V. Aho, Brian W. Kernighan, Peter J. Weinberger
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7 " The AWK Programming Language, Addison-Wesley, 1988
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 " GAWK ref. is: Arnold D. Robbins
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 " Effective AWK Programming, Third Edition, O'Reilly, 2001
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 " MAWK is a "new awk" meaning it implements AWK ref.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13 " mawk conforms to the Posix 1003.2 (draft 11.3)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 " definition of the AWK language which contains a few features
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 " not described in the AWK book, and mawk provides a small number of extensions.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 " TODO:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 " Dig into the commented out syntax expressions below.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 " For version 5.x: Clear all syntax items
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 " For version 6.x: Quit when a syntax file was already loaded
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 if version < 600
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 syn clear
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 elseif exists("b:current_syntax")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27
3312
b7811ab264bf updated for version 7.3.423
Bram Moolenaar <bram@vim.org>
parents: 216
diff changeset
28 let s:cpo_save = &cpo
b7811ab264bf updated for version 7.3.423
Bram Moolenaar <bram@vim.org>
parents: 216
diff changeset
29 set cpo&vim
b7811ab264bf updated for version 7.3.423
Bram Moolenaar <bram@vim.org>
parents: 216
diff changeset
30
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 " A bunch of useful Awk keywords
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 " AWK ref. p. 188
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 syn keyword awkStatement break continue delete exit
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34 syn keyword awkStatement function getline next
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 syn keyword awkStatement print printf return
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 " GAWK ref. p. 117
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37 syn keyword awkStatement nextfile
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 " AWK ref. p. 42, GAWK ref. p. 142-166
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 syn keyword awkFunction atan2 close cos exp fflush int log rand sin sqrt srand
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40 syn keyword awkFunction gsub index length match split sprintf sub
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41 syn keyword awkFunction substr system
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42 " GAWK ref. p. 142-166
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43 syn keyword awkFunction asort gensub mktime strftime strtonum systime
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44 syn keyword awkFunction tolower toupper
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45 syn keyword awkFunction and or xor compl lshift rshift
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46 syn keyword awkFunction dcgettext bindtextdomain
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48 syn keyword awkConditional if else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49 syn keyword awkRepeat while for
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51 syn keyword awkTodo contained TODO
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53 syn keyword awkPatterns BEGIN END
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54 " AWK ref. p. 36
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
55 syn keyword awkVariables ARGC ARGV FILENAME FNR FS NF NR
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
56 syn keyword awkVariables OFMT OFS ORS RLENGTH RS RSTART SUBSEP
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
57 " GAWK ref. p. 120-126
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
58 syn keyword awkVariables ARGIND BINMODE CONVFMT ENVIRON ERRNO
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
59 syn keyword awkVariables FIELDWIDTHS IGNORECASE LINT PROCINFO
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
60 syn keyword awkVariables RT RLENGTH TEXTDOMAIN
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
61
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
62 syn keyword awkRepeat do
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
63
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
64 " Octal format character.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
65 syn match awkSpecialCharacter display contained "\\[0-7]\{1,3\}"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
66 syn keyword awkStatement func nextfile
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
67 " Hex format character.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
68 syn match awkSpecialCharacter display contained "\\x[0-9A-Fa-f]\+"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
69
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
70 syn match awkFieldVars "\$\d\+"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
71
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
72 "catch errors caused by wrong parenthesis
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
73 syn region awkParen transparent start="(" end=")" contains=ALLBUT,awkParenError,awkSpecialCharacter,awkArrayElement,awkArrayArray,awkTodo,awkRegExp,awkBrktRegExp,awkBrackets,awkCharClass
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
74 syn match awkParenError display ")"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
75 syn match awkInParen display contained "[{}]"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
76
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
77 " 64 lines for complex &&'s, and ||'s in a big "if"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
78 syn sync ccomment awkParen maxlines=64
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
79
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
80 " Search strings & Regular Expressions therein.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
81 syn region awkSearch oneline start="^[ \t]*/"ms=e start="\(,\|!\=\~\)[ \t]*/"ms=e skip="\\\\\|\\/" end="/" contains=awkBrackets,awkRegExp,awkSpecialCharacter
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
82 syn region awkBrackets contained start="\[\^\]\="ms=s+2 start="\[[^\^]"ms=s+1 end="\]"me=e-1 contains=awkBrktRegExp,awkCharClass
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
83 syn region awkSearch oneline start="[ \t]*/"hs=e skip="\\\\\|\\/" end="/" contains=awkBrackets,awkRegExp,awkSpecialCharacter
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
84
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
85 syn match awkCharClass contained "\[:[^:\]]*:\]"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
86 syn match awkBrktRegExp contained "\\.\|.\-[^]]"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
87 syn match awkRegExp contained "/\^"ms=s+1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
88 syn match awkRegExp contained "\$/"me=e-1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
89 syn match awkRegExp contained "[?.*{}|+]"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
90
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
91 " String and Character constants
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
92 " Highlight special characters (those which have a backslash) differently
3513
1b584a6f446c Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3312
diff changeset
93 syn region awkString start=+"+ skip=+\\\\\|\\"+ end=+"+ contains=@Spell,awkSpecialCharacter,awkSpecialPrintf
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
94 syn match awkSpecialCharacter contained "\\."
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
95
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
96 " Some of these combinations may seem weird, but they work.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
97 syn match awkSpecialPrintf contained "%[-+ #]*\d*\.\=\d*[cdefgiosuxEGX%]"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
98
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
99 " Numbers, allowing signs (both -, and +)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
100 " Integer number.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
101 syn match awkNumber display "[+-]\=\<\d\+\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
102 " Floating point number.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
103 syn match awkFloat display "[+-]\=\<\d\+\.\d+\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
104 " Floating point number, starting with a dot.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
105 syn match awkFloat display "[+-]\=\<.\d+\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
106 syn case ignore
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
107 "floating point number, with dot, optional exponent
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
108 syn match awkFloat display "\<\d\+\.\d*\(e[-+]\=\d\+\)\=\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
109 "floating point number, starting with a dot, optional exponent
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
110 syn match awkFloat display "\.\d\+\(e[-+]\=\d\+\)\=\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
111 "floating point number, without dot, with exponent
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
112 syn match awkFloat display "\<\d\+e[-+]\=\d\+\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
113 syn case match
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
114
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
115 "syn match awkIdentifier "\<[a-zA-Z_][a-zA-Z0-9_]*\>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
116
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
117 " Arithmetic operators: +, and - take care of ++, and --
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
118 "syn match awkOperator "+\|-\|\*\|/\|%\|="
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
119 "syn match awkOperator "+=\|-=\|\*=\|/=\|%="
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
120 "syn match awkOperator "^\|^="
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
121
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
122 " Comparison expressions.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
123 "syn match awkExpression "==\|>=\|=>\|<=\|=<\|\!="
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
124 "syn match awkExpression "\~\|\!\~"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
125 "syn match awkExpression "?\|:"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
126 "syn keyword awkExpression in
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
127
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
128 " Boolean Logic (OR, AND, NOT)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
129 "syn match awkBoolLogic "||\|&&\|\!"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
130
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
131 " This is overridden by less-than & greater-than.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
132 " Put this above those to override them.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
133 " Put this in a 'match "\<printf\=\>.*;\="' to make it not override
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
134 " less/greater than (most of the time), but it won't work yet because
3513
1b584a6f446c Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3312
diff changeset
135 " keywords always have precedence over match & region.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
136 " File I/O: (print foo, bar > "filename") & for nawk (getline < "filename")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
137 "syn match awkFileIO contained ">"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
138 "syn match awkFileIO contained "<"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
139
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
140 " Expression separators: ';' and ','
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
141 syn match awkSemicolon ";"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
142 syn match awkComma ","
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
143
3513
1b584a6f446c Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3312
diff changeset
144 syn match awkComment "#.*" contains=@Spell,awkTodo
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
145
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
146 syn match awkLineSkip "\\$"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
147
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
148 " Highlight array element's (recursive arrays allowed).
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
149 " Keeps nested array names' separate from normal array elements.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
150 " Keeps numbers separate from normal array elements (variables).
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
151 syn match awkArrayArray contained "[^][, \t]\+\["me=e-1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
152 syn match awkArrayElement contained "[^][, \t]\+"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
153 syn region awkArray transparent start="\[" end="\]" contains=awkArray,awkArrayElement,awkArrayArray,awkNumber,awkFloat
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
154
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
155 " 10 should be enough.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
156 " (for the few instances where it would be more than "oneline")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
157 syn sync ccomment awkArray maxlines=10
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
158
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
159 " define the default highlighting
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
160 " For version 5.7 and earlier: only when not done already
3513
1b584a6f446c Updated runtime files.
Bram Moolenaar <bram@vim.org>
parents: 3312
diff changeset
161 " For version 5.8 and later: only when an item doesn't have highlighting yet
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
162 if version >= 508 || !exists("did_awk_syn_inits")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
163 if version < 508
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
164 let did_awk_syn_inits = 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
165 command -nargs=+ HiLink hi link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
166 else
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
167 command -nargs=+ HiLink hi def link <args>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
168 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
169
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
170 HiLink awkConditional Conditional
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
171 HiLink awkFunction Function
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
172 HiLink awkRepeat Repeat
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
173 HiLink awkStatement Statement
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
174
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
175 HiLink awkString String
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
176 HiLink awkSpecialPrintf Special
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
177 HiLink awkSpecialCharacter Special
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
178
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
179 HiLink awkSearch String
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
180 HiLink awkBrackets awkRegExp
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
181 HiLink awkBrktRegExp awkNestRegExp
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
182 HiLink awkCharClass awkNestRegExp
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
183 HiLink awkNestRegExp Keyword
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
184 HiLink awkRegExp Special
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
185
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
186 HiLink awkNumber Number
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
187 HiLink awkFloat Float
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
188
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
189 HiLink awkFileIO Special
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
190 "HiLink awkOperator Special
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
191 "HiLink awkExpression Special
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
192 HiLink awkBoolLogic Special
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
193
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
194 HiLink awkPatterns Special
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
195 HiLink awkVariables Special
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
196 HiLink awkFieldVars Special
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
197
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
198 HiLink awkLineSkip Special
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
199 HiLink awkSemicolon Special
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
200 HiLink awkComma Special
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
201 "HiLink awkIdentifier Identifier
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
202
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
203 HiLink awkComment Comment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
204 HiLink awkTodo Todo
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
205
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
206 " Change this if you want nested array names to be highlighted.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
207 HiLink awkArrayArray awkArray
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
208 HiLink awkArrayElement Special
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
209
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
210 HiLink awkParenError awkError
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
211 HiLink awkInParen awkError
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
212 HiLink awkError Error
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
213
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
214 delcommand HiLink
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
215 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
216
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
217 let b:current_syntax = "awk"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
218
3312
b7811ab264bf updated for version 7.3.423
Bram Moolenaar <bram@vim.org>
parents: 216
diff changeset
219 let &cpo = s:cpo_save
b7811ab264bf updated for version 7.3.423
Bram Moolenaar <bram@vim.org>
parents: 216
diff changeset
220 unlet s:cpo_save
b7811ab264bf updated for version 7.3.423
Bram Moolenaar <bram@vim.org>
parents: 216
diff changeset
221
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
222 " vim: ts=8