-
-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathawk.xml
27 lines (14 loc) · 1.33 KB
/
awk.xml
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
<document pattern="^.*\.(awk)$">
<item name="options" wrap="0"></item>
<item name="keywords" type="keywords" color="keywords" fontstyle="bold">\b(BEGIN|END|if|for|function|in|else|while|do|break|continue|exit)\b</item>
<item name="variables" type="keywords" color="keywords" fontstyle="bold">\b(ARGIND|ARGC|ARGV|BINMODE|ENVIRON|ERRNO|FILENAME|FIELDWIDTHS|FS|FNR|IGNORECASE|IF|LINT|PROCINFO|TEXTDOMAIN|NF|NR|OFMT|OFS|ORS|RLENGTH|RS|RSTART|SUBSEP)\b</item>
<item name="functions" type="keywords" color="functions">\b(print|printf|atan2|cos|exp|int|log|rand|sin|sqrt|srand|asort|asorti|gsub|index|length|match|split|sprintf|strtonum|sub|substr|tolower|toupper|systime|mktime|strftime|and|compl|lshift|rshift|or|xor|close|delete|exit|fflush|getline|next|nextfile|return|system)\b</item>
<item name="preproc" type="item" color="preproc" fontstyle="italic">^#.*</item>
<item name="quotes" type="item" color="quotes">("[^\"]*")</item>
<item name="char" type="item" color="quotes">('[^']*')</item>
<item name="single comment" type="item" color="single comment" fontstyle="italic">#.*</item>
<item name="mcomment-start" type="mcomment-start" color="mcomment-start" fontstyle="italic">/\*</item>
<item name="mcomment-end" type="mcomment-end">\*/</item>
<item name="cm_mult" type="comment">#%s</item>
<item name="cm_single" type="comment">#%s</item>
</document>