<?xml version="1.0"?>

<!DOCTYPE MODE SYSTEM "xmode.dtd">

<!-- AWK mode, by Matthias M. Schneider -->
<MODE>
	<PROPS>
		<PROPERTY NAME="indentOpenBrackets" VALUE="{" />
		<PROPERTY NAME="indentCloseBrackets" VALUE="}" />
		<PROPERTY NAME="lineComment" VALUE="#" />
		<PROPERTY NAME="wordBreakChars" VALUE=",+-=&lt;&gt;/?^&amp;*" />
		<PROPERTY NAME="contextInsensitive" VALUE="true"/>
	</PROPS>
	<RULES IGNORE_CASE="FALSE" HIGHLIGHT_DIGITS="TRUE">
		<SPAN TYPE="LITERAL1" ESCAPE="\" NO_LINE_BREAK="TRUE">
			<BEGIN>"</BEGIN>
			<END>"</END>
		</SPAN>
		<SPAN TYPE="LITERAL1" ESCAPE="\" NO_LINE_BREAK="TRUE">
			<BEGIN>'</BEGIN>
			<END>'</END>
		</SPAN>

		<EOL_SPAN TYPE="COMMENT1">#</EOL_SPAN>
		<SEQ TYPE="OPERATOR">=</SEQ>
		<SEQ TYPE="OPERATOR">!</SEQ>
		<SEQ TYPE="OPERATOR">&gt;=</SEQ>
		<SEQ TYPE="OPERATOR">&lt;=</SEQ>
		<SEQ TYPE="OPERATOR">+</SEQ>
		<SEQ TYPE="OPERATOR">-</SEQ>
		<SEQ TYPE="OPERATOR">/</SEQ>
		<SEQ TYPE="OPERATOR">*</SEQ>
		<SEQ TYPE="OPERATOR">&gt;</SEQ>
		<SEQ TYPE="OPERATOR">&lt;</SEQ>
		<SEQ TYPE="OPERATOR">%</SEQ>
		<SEQ TYPE="OPERATOR">&amp;</SEQ>
		<SEQ TYPE="OPERATOR">|</SEQ>
		<SEQ TYPE="OPERATOR">^</SEQ>
		<SEQ TYPE="OPERATOR">~</SEQ>
		<SEQ TYPE="OPERATOR">}</SEQ>
		<SEQ TYPE="OPERATOR">{</SEQ>
		<MARK_PREVIOUS AT_WHITESPACE_END="TRUE"
			MATCH_TYPE="OPERATOR"
			TYPE="LABEL">:</MARK_PREVIOUS>

		<KEYWORDS>
			<KEYWORD1>break</KEYWORD1>
			<KEYWORD1>close</KEYWORD1>
			<KEYWORD1>continue</KEYWORD1>
			<KEYWORD1>delete</KEYWORD1>
			<KEYWORD1>do</KEYWORD1>
			<KEYWORD1>else</KEYWORD1>
			<KEYWORD1>exit</KEYWORD1>
			<KEYWORD1>fflush</KEYWORD1>
			<KEYWORD1>for</KEYWORD1>
			<KEYWORD1>huge</KEYWORD1>
			<KEYWORD1>if</KEYWORD1>
			<KEYWORD1>in</KEYWORD1>
			<KEYWORD1>function</KEYWORD1>
			<KEYWORD1>next</KEYWORD1>
			<KEYWORD1>nextfile</KEYWORD1>
			<KEYWORD1>print</KEYWORD1>
			<KEYWORD1>printf</KEYWORD1>
			<KEYWORD1>return</KEYWORD1>
			<KEYWORD1>while</KEYWORD1>

			<KEYWORD2>atan2</KEYWORD2>
			<KEYWORD2>cos</KEYWORD2>
			<KEYWORD2>exp</KEYWORD2>
			<KEYWORD2>gensub</KEYWORD2>
			<KEYWORD2>getline</KEYWORD2>
			<KEYWORD2>gsub</KEYWORD2>
			<KEYWORD2>index</KEYWORD2>
			<KEYWORD2>int</KEYWORD2>
			<KEYWORD2>length</KEYWORD2>
			<KEYWORD2>log</KEYWORD2>
			<KEYWORD2>match</KEYWORD2>
			<KEYWORD2>rand</KEYWORD2>
			<KEYWORD2>sin</KEYWORD2>
			<KEYWORD2>split</KEYWORD2>
			<KEYWORD2>sprintf</KEYWORD2>
			<KEYWORD2>sqrt</KEYWORD2>
			<KEYWORD2>srand</KEYWORD2>
			<KEYWORD2>sub</KEYWORD2>
			<KEYWORD2>substr</KEYWORD2>
			<KEYWORD2>system</KEYWORD2>
			<KEYWORD2>tolower</KEYWORD2>
			<KEYWORD2>toupper</KEYWORD2>

			<KEYWORD3>BEGIN</KEYWORD3>
			<KEYWORD3>END</KEYWORD3>
			<KEYWORD3>$0</KEYWORD3>
			<KEYWORD3>ARGC</KEYWORD3>
			<KEYWORD3>ARGIND</KEYWORD3>
			<KEYWORD3>ARGV</KEYWORD3>
			<KEYWORD3>CONVFMT</KEYWORD3>
			<KEYWORD3>ENVIRON</KEYWORD3>
			<KEYWORD3>ERRNO</KEYWORD3>
			<KEYWORD3>FIELDSWIDTH</KEYWORD3>
			<KEYWORD3>FILENAME</KEYWORD3>
			<KEYWORD3>FNR</KEYWORD3>
			<KEYWORD3>FS</KEYWORD3>
			<KEYWORD3>IGNORECASE</KEYWORD3>
			<KEYWORD3>NF</KEYWORD3>
			<KEYWORD3>NR</KEYWORD3>
			<KEYWORD3>OFMT</KEYWORD3>
			<KEYWORD3>OFS</KEYWORD3>
			<KEYWORD3>ORS</KEYWORD3>
			<KEYWORD3>RLENGTH</KEYWORD3>
			<KEYWORD3>RS</KEYWORD3>
			<KEYWORD3>RSTART</KEYWORD3>
			<KEYWORD3>RT</KEYWORD3>
			<KEYWORD3>SUBSEP</KEYWORD3>
		</KEYWORDS>
	</RULES>
</MODE>
