| 1 |
<?xml version="1.0" encoding="UTF-8"?> |
| 2 |
<!DOCTYPE language> |
| 3 |
<language name="AWK" version="6" kateversion="5.0" section="Scripts" |
| 4 |
extensions="*.awk" mimetype="text/x-awk" indenter="cstyle" |
| 5 |
license="LGPL"> |
| 6 |
<!-- patched by igli#kate@irc:chat.freenode.net --> |
| 7 |
<highlighting> |
| 8 |
<list name="controlflow"> |
| 9 |
<item>if</item> |
| 10 |
<item>else</item> |
| 11 |
<item>while</item> |
| 12 |
<item>do</item> |
| 13 |
<item>for</item> |
| 14 |
<item>break</item> |
| 15 |
<item>continue</item> |
| 16 |
<item>return</item> |
| 17 |
<item>switch</item> |
| 18 |
<item>case</item> |
| 19 |
<item>default</item> |
| 20 |
<item>exit</item> |
| 21 |
</list> |
| 22 |
<list name="keywords"> |
| 23 |
<item>in</item> |
| 24 |
<item>delete</item> |
| 25 |
<item>print</item> |
| 26 |
<item>printf</item> |
| 27 |
<item>getline</item> |
| 28 |
<item>function</item> |
| 29 |
<item>next</item> |
| 30 |
<item>nextfile</item> |
| 31 |
<item>@include</item> |
| 32 |
<item>@load</item> |
| 33 |
</list> |
| 34 |
<list name="builtins"> |
| 35 |
<item>ARGC</item> |
| 36 |
<item>ARGIND</item> |
| 37 |
<item>ARGV</item> |
| 38 |
<item>BINMODE</item> |
| 39 |
<item>CONVFMT</item> |
| 40 |
<item>ENVIRON</item> |
| 41 |
<item>ERRNO</item> |
| 42 |
<item>FIELDWIDTHS</item> |
| 43 |
<item>FILENAME</item> |
| 44 |
<item>FNR</item> |
| 45 |
<item>FPAT</item> |
| 46 |
<item>FS</item> |
| 47 |
<item>FUNCTAB</item> |
| 48 |
<item>IGNORECASE</item> |
| 49 |
<item>LINT</item> |
| 50 |
<item>NF</item> |
| 51 |
<item>NR</item> |
| 52 |
<item>OFMT</item> |
| 53 |
<item>OFS</item> |
| 54 |
<item>ORS</item> |
| 55 |
<item>PREC</item> |
| 56 |
<item>PROCINFO</item> |
| 57 |
<item>ROUNDMODE</item> |
| 58 |
<item>RS</item> |
| 59 |
<item>RT</item> |
| 60 |
<item>RSTART</item> |
| 61 |
<item>RLENGTH</item> |
| 62 |
<item>SUBSEP</item> |
| 63 |
<item>SYMTAB</item> |
| 64 |
<item>TEXTDOMAIN</item> |
| 65 |
</list> |
| 66 |
<list name="functions"> |
| 67 |
<!-- I/O --> |
| 68 |
<item>close</item> |
| 69 |
<item>fflush</item> |
| 70 |
<item>system</item> |
| 71 |
<!-- Arithmetic --> |
| 72 |
<item>atan2</item> |
| 73 |
<item>cos</item> |
| 74 |
<item>exp</item> |
| 75 |
<item>int</item> |
| 76 |
<item>log</item> |
| 77 |
<item>rand</item> |
| 78 |
<item>sin</item> |
| 79 |
<item>sqrt</item> |
| 80 |
<item>srand</item> |
| 81 |
<!-- String --> |
| 82 |
<item>asort</item> |
| 83 |
<item>asorti</item> |
| 84 |
<item>gensub</item> |
| 85 |
<item>gsub</item> |
| 86 |
<item>index</item> |
| 87 |
<item>length</item> |
| 88 |
<item>match</item> |
| 89 |
<item>patsplit</item> |
| 90 |
<item>split</item> |
| 91 |
<item>sprintf</item> |
| 92 |
<item>strtonum</item> |
| 93 |
<item>sub</item> |
| 94 |
<item>substr</item> |
| 95 |
<item>tolower</item> |
| 96 |
<item>toupper</item> |
| 97 |
<!-- Time --> |
| 98 |
<item>mktime</item> |
| 99 |
<item>strftime</item> |
| 100 |
<item>systime</item> |
| 101 |
<!-- Bit Manipulationse --> |
| 102 |
<item>and</item> |
| 103 |
<item>compl</item> |
| 104 |
<item>lshift</item> |
| 105 |
<item>or</item> |
| 106 |
<item>rshift</item> |
| 107 |
<item>xor</item> |
| 108 |
<!-- Type --> |
| 109 |
<item>isarray</item> |
| 110 |
<item>typeof</item> |
| 111 |
<!-- Internationalization --> |
| 112 |
<item>bindtextdomain</item> |
| 113 |
<item>dcgettext</item> |
| 114 |
<item>dcngettext</item> |
| 115 |
</list> |
| 116 |
<list name="special"> |
| 117 |
<item>BEGIN</item> |
| 118 |
<item>BEGINFILE</item> |
| 119 |
<item>END</item> |
| 120 |
<item>ENDFILE</item> |
| 121 |
</list> |
| 122 |
<list name="charclass"> |
| 123 |
<item>alpha</item> |
| 124 |
<item>alnum</item> |
| 125 |
<item>blank</item> |
| 126 |
<item>cntrl</item> |
| 127 |
<item>digit</item> |
| 128 |
<item>graph</item> |
| 129 |
<item>lower</item> |
| 130 |
<item>print</item> |
| 131 |
<item>punct</item> |
| 132 |
<item>space</item> |
| 133 |
<item>upper</item> |
| 134 |
<item>xdigit</item> |
| 135 |
</list> |
| 136 |
|
| 137 |
<contexts> |
| 138 |
<!-- START CONTEXTS --> |
| 139 |
<context name="Pattern" attribute="Normal" lineEndContext="#stay"> |
| 140 |
<DetectSpaces /> |
| 141 |
<DetectChar char="{" attribute="Symbol" context="Block" beginRegion="block" /> |
| 142 |
<DetectChar char="}" attribute="Error" context="#stay"/> |
| 143 |
<DetectChar char="/" attribute="Regex Op" firstNonSpace="true" context="Regex"/> |
| 144 |
<IncludeRules context="base" /> |
| 145 |
<keyword String="special" attribute="Special" context="#stay"/> |
| 146 |
</context> |
| 147 |
|
| 148 |
<context name="Block" attribute="Normal" lineEndContext="#stay"> |
| 149 |
<DetectSpaces /> |
| 150 |
<DetectChar char="}" attribute="Symbol" context="#pop" endRegion="block" /> |
| 151 |
<DetectChar char="{" attribute="Symbol" context="Block" beginRegion="block" /> |
| 152 |
<IncludeRules context="base" /> |
| 153 |
<keyword String="special" attribute="Error" context="#stay"/> |
| 154 |
</context> |
| 155 |
|
| 156 |
<context name="base" attribute="Normal" lineEndContext="#stay"> |
| 157 |
<DetectChar char=")" attribute="Symbol" context="#stay"/> |
| 158 |
<DetectChar char="(" attribute="Symbol" context="Match"/> |
| 159 |
<AnyChar String="=~" attribute="Operator" context="Match"/> |
| 160 |
<DetectChar char="," attribute="Separator Symbol" context="ArgSep"/> |
| 161 |
<DetectChar char=""" attribute="String" context="String"/> |
| 162 |
<DetectChar char="#" attribute="Comment" context="Comment"/> |
| 163 |
<AnyChar String="@!%&*+-/:<>?^|" attribute="Operator" context="#stay"/> |
| 164 |
<keyword String="controlflow" attribute="ControlFlow" context="#stay"/> |
| 165 |
<keyword String="keywords" attribute="Keyword" context="#stay"/> |
| 166 |
<keyword String="builtins" attribute="Builtin" context="#stay"/> |
| 167 |
<keyword String="functions" attribute="Function" context="#stay"/> |
| 168 |
<Float attribute="Float" context="#stay"/> |
| 169 |
<Int attribute="Decimal" context="#stay"/> |
| 170 |
<RegExpr String="\$[A-Za-z0-9_]+" attribute="Field" context="#stay"/> |
| 171 |
<DetectChar char=";" attribute="Separator Symbol" context="#stay"/> |
| 172 |
</context> |
| 173 |
|
| 174 |
<context name="ArgSep" attribute="Normal" lineEndContext="#stay" |
| 175 |
fallthrough="true" fallthroughContext="#pop"> |
| 176 |
<IncludeRules context="Match" /> |
| 177 |
</context> |
| 178 |
|
| 179 |
<context name="String" attribute="String" lineEndContext="#stay"> |
| 180 |
<DetectChar char=""" attribute="String" context="#pop"/> |
| 181 |
<DetectChar char="\" context="Escape" attribute="Escape"/> |
| 182 |
</context> |
| 183 |
|
| 184 |
<context name="Comment" attribute="Comment" lineEndContext="#pop"> |
| 185 |
<IncludeRules context="##Comments"/> |
| 186 |
</context> |
| 187 |
|
| 188 |
<context name="Escape" attribute="Error" lineEndContext="#pop"> |
| 189 |
<RegExpr String="[\\abfnrtv]|x[0-9a-fA-F]{1,2}|[0-7]{1,3}" attribute="Escape" context="#pop"/> |
| 190 |
<RegExpr String="." attribute="Error" context="#pop"/> |
| 191 |
</context> |
| 192 |
|
| 193 |
<context name="Match" attribute="Normal" lineEndContext="#pop" |
| 194 |
fallthrough="true" fallthroughContext="#pop"> |
| 195 |
<DetectSpaces /> |
| 196 |
<DetectChar char="/" attribute="Regex Op" context="#pop!Regex"/> |
| 197 |
</context> |
| 198 |
|
| 199 |
<context name="Regex" attribute="Regex" lineEndContext="#pop"> |
| 200 |
<IncludeRules context="regex"/> |
| 201 |
<DetectChar char="/" context="#pop" attribute="Regex Op"/> |
| 202 |
</context> |
| 203 |
|
| 204 |
<context name="regex" attribute="Normal" lineEndContext="#stay"> |
| 205 |
<Detect2Chars char="[" char1="^" context="RegexChar" attribute="Regex Op"/> |
| 206 |
<DetectChar char="[" context="RegexChar" attribute="Regex Op"/> |
| 207 |
<AnyChar String="^$.+?*()|" context="#stay" attribute="Regex Op"/> |
| 208 |
<DetectChar char="\" context="Regex Escape" attribute="Regex Op"/> |
| 209 |
</context> |
| 210 |
|
| 211 |
<context name="Regex Escape" attribute="Normal" lineEndContext="#pop"> |
| 212 |
<RegExpr String="[<>sSwW`'[\]{}^$.+?*()|/\\abfnrtv]|x[0-9a-fA-F]{1,2}|[0-7]{1,3}" attribute="Escape" context="#pop"/> |
| 213 |
<RegExpr String="." attribute="Regex" context="#pop"/> |
| 214 |
</context> |
| 215 |
|
| 216 |
<context name="RegexChar" attribute="Regex" lineEndContext="#pop" |
| 217 |
fallthrough="true" fallthroughContext="InChar"> |
| 218 |
<AnyChar String="-]" context="InChar" attribute="Regex"/> |
| 219 |
</context> |
| 220 |
|
| 221 |
<context name="InChar" attribute="Regex" lineEndContext="#pop#pop"> |
| 222 |
<Detect2Chars char="-" char1="]" context="InCharEnd" attribute="Regex" lookAhead="true"/> |
| 223 |
<DetectChar char="-" context="#stay" attribute="Regex Op"/> |
| 224 |
<DetectChar char="\" context="Regex Escape" attribute="Regex Op"/> |
| 225 |
<DetectChar char="[" context="CharClassSelect" attribute="Regex" lookAhead="true"/> |
| 226 |
<DetectChar char="]" context="#pop#pop" attribute="Regex Op"/> |
| 227 |
</context> |
| 228 |
|
| 229 |
<context name="InCharEnd" attribute="Regex Op" lineEndContext="#stay"> |
| 230 |
<DetectChar char="-" context="#stay" attribute="Regex"/> |
| 231 |
<DetectChar char="]" context="#pop#pop#pop" attribute="Regex Op"/> |
| 232 |
</context> |
| 233 |
|
| 234 |
<context name="CharClassSelect" attribute="Custom" lineEndContext="#pop#pop#pop#pop"> |
| 235 |
<Detect2Chars char="[" char1=":" context="#pop!CharClass" attribute="CharClass"/> |
| 236 |
<Detect2Chars char="[" char1="." context="#pop!CollatingSymbols" attribute="CharClass"/> |
| 237 |
<Detect2Chars char="[" char1="=" context="#pop!EquivalenceClass" attribute="CharClass"/> |
| 238 |
<DetectChar char="[" context="#pop" attribute="Regex"/> |
| 239 |
</context> |
| 240 |
|
| 241 |
<context name="CharClass" attribute="Custom" lineEndContext="#pop#pop#pop#pop"> |
| 242 |
<keyword String="charclass" attribute="CharClass" context="#stay"/> |
| 243 |
<Detect2Chars char=":" char1="]" attribute="CharClass" context="#pop"/> |
| 244 |
<DetectChar char="]" attribute="Error" context="#pop"/> |
| 245 |
</context> |
| 246 |
|
| 247 |
<context name="CollatingSymbols" attribute="Custom" lineEndContext="#pop#pop#pop#pop"> |
| 248 |
<Detect2Chars char="." char1="]" attribute="CharClass" context="#pop"/> |
| 249 |
<DetectChar char="]" attribute="Error" context="#pop"/> |
| 250 |
</context> |
| 251 |
|
| 252 |
<context name="EquivalenceClass" attribute="Custom" lineEndContext="#pop#pop#pop#pop"> |
| 253 |
<Detect2Chars char="=" char1="]" attribute="CharClass" context="#pop"/> |
| 254 |
<DetectChar char="]" attribute="Error" context="#pop"/> |
| 255 |
</context> |
| 256 |
|
| 257 |
<!-- END OF CONTEXTS --> |
| 258 |
</contexts> |
| 259 |
<itemDatas> |
| 260 |
<itemData name="Normal" defStyleNum="dsNormal"/> |
| 261 |
<itemData name="ControlFlow" defStyleNum="dsControlFlow" spellChecking="false"/> |
| 262 |
<itemData name="Keyword" defStyleNum="dsKeyword" spellChecking="false"/> |
| 263 |
<itemData name="Builtin" defStyleNum="dsBuiltIn" spellChecking="false"/> |
| 264 |
<itemData name="Function" defStyleNum="dsFunction" spellChecking="false"/> |
| 265 |
<itemData name="Decimal" defStyleNum="dsDecVal"/> |
| 266 |
<itemData name="Float" defStyleNum="dsFloat"/> |
| 267 |
<itemData name="String" defStyleNum="dsString"/> |
| 268 |
<itemData name="Comment" defStyleNum="dsComment"/> |
| 269 |
<itemData name="Escape" defStyleNum="dsSpecialChar"/> |
| 270 |
<itemData name="Field" defStyleNum="dsDataType"/> |
| 271 |
<itemData name="Error" defStyleNum="dsError"/> |
| 272 |
<itemData name="Special" defStyleNum="dsControlFlow" bold="0"/> |
| 273 |
<itemData name="Operator" defStyleNum="dsOperator"/> |
| 274 |
<itemData name="Symbol" defStyleNum="dsOperator"/> |
| 275 |
<itemData name="Separator Symbol" defStyleNum="dsOperator"/> |
| 276 |
<itemData name="Regex" defStyleNum="dsSpecialString" spellChecking="false"/> |
| 277 |
<itemData name="Regex Op" defStyleNum="dsOthers"/> |
| 278 |
<itemData name="CharClass" defStyleNum="dsExtension" spellChecking="false"/> |
| 279 |
<itemData name="Custom" defStyleNum="dsOthers" spellChecking="false"/> |
| 280 |
</itemDatas> |
| 281 |
</highlighting> |
| 282 |
<general> |
| 283 |
<comments> |
| 284 |
<comment name="singleLine" start="#"/> |
| 285 |
</comments> |
| 286 |
<keywords casesensitive="1" weakDeliminator="@"/> |
| 287 |
</general> |
| 288 |
</language> |
| 289 |
<!-- kate: replace-tabs on; tab-width 2; indent-width 2; --> |