blob: 551a67a8f4ab9d41ed8b20af8973cc1495ac3adb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
|
# AWK syntax by
# Olegarch <olegarch@mail.ru>
# Andres Farfan, <nafraf@linuxmail.org>
# Ilia Maslakov <il.smind gmail com>
#
# (c) 2003, 2004, 2009
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
context default
keyword whole linestart #!\[\s\]/bin/\[msg\]awk yellow magenta
keyword whole linestart #!\[\s\]/usr/bin/\[msg\]awk yellow magenta
# Keywords
keyword whole AMNOISE white
keyword whole BEGIN white
keyword whole END white
keyword whole func white
keyword whole function white
keyword whole nextfile white
keyword whole return white/26
keyword whole print white/26
keyword whole printf white/26
keyword whole if white/26
keyword whole else white/26
keyword whole while white/26
keyword whole for white/26
keyword whole in white/26
keyword whole do white/26
keyword whole break white/26
keyword whole continue white/26
keyword whole next white/26
keyword whole exit white/26
keyword whole close white/26
keyword whole system white/26
keyword whole getline white/26
# Builtin functions:
keyword whole atan2 white black
keyword whole cos white black
keyword whole exp white black
keyword whole int white black
keyword whole log white black
keyword whole rand white black
keyword whole sin white black
keyword whole sqrt white black
keyword whole srand white black
keyword whole gsub white black
keyword whole index white black
keyword whole length white black
keyword whole match white black
keyword whole split white black
keyword whole sprintf white black
keyword whole sub white black
keyword whole substr white black
keyword whole asort white black
keyword whole asorti white black
keyword whole xor white
keyword whole and white
keyword whole or white
# Gawk builtin functions:
keyword whole fflush white black
keyword whole gensub white black
keyword whole tolower white black
keyword whole toupper white black
keyword whole systime white black
keyword whole strftime white black
keyword whole strtonum white
keyword whole bindtextdomain white
keyword whole dcgettext white
keyword whole dcngettext white
keyword whole compl white
keyword whole delete white
keyword whole extension white
keyword whole mktime white
keyword whole lshift white
keyword whole rshift white
# Builtin variables:
keyword whole ARGIND brightblue
keyword whole BINMODE brightblue
keyword whole CONVFMT brightblue
keyword whole ENVIRON brightblue
keyword whole LINT brightblue
keyword whole TEXTDOMAIN brightblue
keyword whole ARGC brightblue
keyword whole ARGV brightblue
keyword whole FILENAME brightblue
keyword whole FNR brightblue
keyword whole FS brightblue
keyword whole NF brightblue
keyword whole NR brightblue
keyword whole OFMT brightblue
keyword whole OFS brightblue
keyword whole ORS brightblue
keyword whole RLENGTH brightblue
keyword whole RS brightblue
keyword whole RSTART brightblue
keyword whole SUBSEP brightblue
# Gawk builtin variables:
keyword whole ARGIND brightblue
keyword whole ERRNO brightblue
keyword whole RT brightblue
keyword whole IGNORECASE brightblue
keyword whole FIELDWIDTHS brightblue
keyword '\s' brightgreen/16
keyword '+' brightgreen/16
keyword > yellow/24
keyword < yellow/24
keyword \+ yellow/24
keyword - yellow/24
keyword \* yellow/24
keyword % yellow/24
keyword = yellow/24
keyword != yellow/24
keyword == yellow/24
keyword { white/25
keyword } white/25
keyword ( white/25
keyword ) white/25
keyword [*] magenta
keyword , white/25
keyword : white/25
keyword ; lightgray/19
keyword $\[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789\] brightred/18
# Begin/End:
keyword whole BEGIN red
keyword whole END red
# Function keyword:
keyword whole function brightmagenta
# Hex constant:
keyword 0\{xX\}\[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789\] magenta/6
# Tab: \t
# keyword linestart \t lightgray/13 blue/6
# Sed:
keyword linestart /^ red
keyword linestart /^# red
context /^#*/ red
# Comments:
context linestart # \n brown
context linestart $ \n brown
# String:
context " " green/6
keyword \\" brightgreen/16
keyword \\\n brightgreen/16
keyword %% brightgreen/16
keyword %\[#0\s-\+,\]\[0123456789\]\[.\]\[0123456789\]\[L\]\{eEfgGoxX\} brightgreen/16
keyword %\[0\s-\+,\]\[0123456789\]\[.\]\[0123456789\]\[hl\]\{diu\} brightgreen/16
keyword %\[hl\]n brightgreen/16
keyword %\[.\]\[0123456789\]s brightgreen/16
keyword %[*] brightgreen/16
keyword %c brightgreen/16
keyword \\\{0123\}\{01234567\}\{01234567\} brightgreen/16
keyword \\\\ brightgreen/16
keyword \\' brightgreen/16
keyword \\\{abtnvfr\} brightgreen/16
|