PageRenderTime 7ms CodeModel.GetById 1ms app.highlight 4ms RepoModel.GetById 1ms app.codeStats 0ms

/jEdit/tags/jedit-4-0-pre5/modes/inform.xml

#
XML | 181 lines | 157 code | 13 blank | 11 comment | 0 complexity | 62dd7de2eecd5f6aeecd24141e598f5a MD5 | raw file
  1<?xml version="1.0"?>
  2
  3<!DOCTYPE MODE SYSTEM "xmode.dtd">
  4
  5<MODE>
  6      <!-- Syntax highlighting mode for the Inform language. You can find out more about inform at
  7           http://www.gnelson.demon.co.uk/inform.html
  8           And an inform language guide at
  9           http://www.gnelson.demon.co.uk/dman/index.html
 10        -->
 11	<PROPS>
 12		<PROPERTY NAME="indentOpenBrackets" VALUE="{" />
 13		<PROPERTY NAME="indentCloseBrackets" VALUE="}" />
 14		<PROPERTY NAME="filenameGlob" VALUE="*.inf" />
 15		<PROPERTY NAME="wordBreakChars" VALUE=",+-=&lt;&gt;/?^&amp;*" />
 16	</PROPS>
 17	<RULES IGNORE_CASE="FALSE" HIGHLIGHT_DIGITS="TRUE">
 18		<!-- whitespace: (space and tab) -->
 19		<WHITESPACE> </WHITESPACE>
 20		<WHITESPACE>	</WHITESPACE>
 21
 22		<EOL_SPAN TYPE="COMMENT1">!</EOL_SPAN>
 23
 24        <!-- strings can span lines -->
 25		<SPAN TYPE="LITERAL1" DELEGATE="InformInnerText">
 26			<BEGIN>"</BEGIN>
 27			<END>"</END>
 28		</SPAN>
 29		<SPAN TYPE="LITERAL2">
 30			<BEGIN>'</BEGIN>
 31			<END>'</END>
 32		</SPAN>
 33        
 34        <!-- special sequences that require special highlighting -->
 35		<SEQ TYPE="NULL">)</SEQ>
 36		<SEQ TYPE="OPERATOR">=</SEQ>
 37		<SEQ TYPE="OPERATOR">!</SEQ>
 38		<SEQ TYPE="OPERATOR">&gt;=</SEQ>
 39		<SEQ TYPE="OPERATOR">&lt;=</SEQ>
 40		<SEQ TYPE="OPERATOR">+</SEQ>
 41		<SEQ TYPE="OPERATOR">-</SEQ>
 42		<SEQ TYPE="OPERATOR">$</SEQ>
 43		<SEQ TYPE="OPERATOR">/</SEQ>
 44		<SEQ TYPE="OPERATOR">*</SEQ>
 45		<SEQ TYPE="OPERATOR">&gt;</SEQ>
 46		<SEQ TYPE="OPERATOR">&lt;</SEQ>
 47		<SEQ TYPE="OPERATOR">%</SEQ>
 48		<SEQ TYPE="OPERATOR">&amp;</SEQ>
 49		<SEQ TYPE="OPERATOR">|</SEQ>
 50		<SEQ TYPE="OPERATOR">^</SEQ>
 51		<SEQ TYPE="OPERATOR">~</SEQ>
 52		<SEQ TYPE="OPERATOR">}</SEQ>
 53		<SEQ TYPE="OPERATOR">{</SEQ>
 54		<SEQ TYPE="OPERATOR">.&amp;</SEQ>
 55		<SEQ TYPE="OPERATOR">.#</SEQ>
 56		<SEQ TYPE="NULL">.</SEQ>
 57		<SEQ TYPE="NULL">,</SEQ>
 58		<SEQ TYPE="NULL">;</SEQ>
 59		<SEQ TYPE="NULL">]</SEQ>
 60		<SEQ TYPE="NULL">[</SEQ>
 61		<SEQ TYPE="NULL">?</SEQ>
 62
 63		<!-- Function calls -->
 64		<MARK_PREVIOUS TYPE="FUNCTION" EXCLUDE_MATCH="TRUE">(</MARK_PREVIOUS>
 65		<MARK_PREVIOUS TYPE="FUNCTION" EXCLUDE_MATCH="TRUE">::</MARK_PREVIOUS>
 66		<MARK_PREVIOUS TYPE="LABEL" EXCLUDE_MATCH="TRUE" AT_LINE_START="TRUE">:</MARK_PREVIOUS>
 67
 68		<SEQ TYPE="NULL">:</SEQ>
 69
 70		<KEYWORDS IGNORE_CASE="FALSE">
 71			<KEYWORD1>has</KEYWORD1>
 72			<KEYWORD1>hasnt</KEYWORD1>
 73			<KEYWORD1>in</KEYWORD1>
 74			<KEYWORD1>notin</KEYWORD1>
 75			<KEYWORD1>ofclass</KEYWORD1>
 76			<KEYWORD1>provides</KEYWORD1>
 77			<KEYWORD1>or</KEYWORD1>
 78            
 79			<KEYWORD1>char</KEYWORD1>
 80			<KEYWORD1>string</KEYWORD1>
 81			<KEYWORD1>address</KEYWORD1>
 82			<KEYWORD1>name</KEYWORD1>
 83			<KEYWORD1>a</KEYWORD1>
 84			<KEYWORD1>an</KEYWORD1>
 85			<KEYWORD1>the</KEYWORD1>
 86			<KEYWORD1>The</KEYWORD1>
 87			<KEYWORD1>property</KEYWORD1>
 88			<KEYWORD1>object</KEYWORD1>
 89            
 90			<KEYWORD2>box</KEYWORD2>
 91			<KEYWORD2>break</KEYWORD2>
 92			<KEYWORD2>continue</KEYWORD2>
 93			<KEYWORD2>do</KEYWORD2>
 94			    <KEYWORD2>until</KEYWORD2>
 95			<KEYWORD2>for</KEYWORD2>
 96			<KEYWORD2>font</KEYWORD2>
 97			    <KEYWORD2>on</KEYWORD2>
 98			    <KEYWORD2>off</KEYWORD2>
 99			<KEYWORD2>give</KEYWORD2>
100			<KEYWORD2>if</KEYWORD2>
101			    <KEYWORD2>else</KEYWORD2>
102			<KEYWORD2>inversion</KEYWORD2>
103			<KEYWORD2>jump</KEYWORD2>
104			<KEYWORD2>move</KEYWORD2>
105			    <KEYWORD2>to</KEYWORD2>
106			<KEYWORD2>new_line</KEYWORD2>
107			<KEYWORD2>objectloop</KEYWORD2>
108			<KEYWORD2>print</KEYWORD2>
109			<KEYWORD2>print_ret</KEYWORD2>
110			<KEYWORD2>quit</KEYWORD2>
111			<KEYWORD2>read</KEYWORD2>
112			<KEYWORD2>remove</KEYWORD2>
113			<KEYWORD2>restore</KEYWORD2>
114			<KEYWORD2>return</KEYWORD2>
115			<KEYWORD2>rfalse</KEYWORD2>
116			<KEYWORD2>rtrue</KEYWORD2>
117			<KEYWORD2>save</KEYWORD2>
118			<KEYWORD2>spaces</KEYWORD2>
119			<KEYWORD2>string</KEYWORD2>
120			<KEYWORD2>style</KEYWORD2>
121			    <KEYWORD2>roman</KEYWORD2>
122			    <KEYWORD2>bold</KEYWORD2>
123			    <KEYWORD2>underline</KEYWORD2>
124			    <KEYWORD2>reverse</KEYWORD2>
125			    <KEYWORD2>fixed</KEYWORD2>
126			<KEYWORD2>switch</KEYWORD2>
127			<KEYWORD2>while</KEYWORD2>
128			<KEYWORD2>score</KEYWORD2>
129			<KEYWORD2>time</KEYWORD2>
130
131			<KEYWORD3>Abbreviate</KEYWORD3>
132			<KEYWORD3>Array</KEYWORD3>
133			<KEYWORD3>Attribute</KEYWORD3>
134			<KEYWORD3>Class</KEYWORD3>
135			<KEYWORD3>Constant</KEYWORD3>
136			<KEYWORD3>Default</KEYWORD3>
137			<KEYWORD3>End</KEYWORD3>
138			<KEYWORD3>Endif</KEYWORD3>
139			<KEYWORD3>Extend</KEYWORD3>
140			<KEYWORD3>Global</KEYWORD3>
141			<KEYWORD3>Ifdef</KEYWORD3>
142			<KEYWORD3>Ifndef</KEYWORD3>
143			<KEYWORD3>Ifnot</KEYWORD3>
144			<KEYWORD3>Iftrue</KEYWORD3>
145			<KEYWORD3>Iffalse</KEYWORD3>
146			<KEYWORD3>Import</KEYWORD3>
147			<KEYWORD3>Include</KEYWORD3>
148			<KEYWORD3>Link</KEYWORD3>
149			<KEYWORD3>Lowstring</KEYWORD3>
150			<KEYWORD3>Message</KEYWORD3>
151			<KEYWORD3>Object</KEYWORD3>
152			<KEYWORD3>Property</KEYWORD3>
153			<KEYWORD3>Replace</KEYWORD3>
154			<KEYWORD3>Serial</KEYWORD3>
155			<KEYWORD3>Switches</KEYWORD3>
156			<KEYWORD3>Statusline</KEYWORD3>
157			<KEYWORD3>System_file</KEYWORD3>
158			<KEYWORD3>Verb</KEYWORD3>
159			<KEYWORD3>with</KEYWORD3>
160<!--			<KEYWORD3>has</KEYWORD3> -->
161			<KEYWORD3>class</KEYWORD3>
162			<KEYWORD3>private</KEYWORD3>
163
164			<LITERAL2>false</LITERAL2>
165			<LITERAL2>null</LITERAL2>
166			<LITERAL2>super</LITERAL2>
167			<LITERAL2>this</LITERAL2>
168			<LITERAL2>true</LITERAL2>
169		</KEYWORDS>
170	</RULES>
171	<RULES SET="InformInnerText" IGNORE_CASE="FALSE" DEFAULT="LITERAL1">
172		<!-- whitespace: (space and tab) -->
173		<WHITESPACE> </WHITESPACE>
174		<WHITESPACE>	</WHITESPACE>
175
176		<SEQ TYPE="OPERATOR">^</SEQ>
177		<SEQ TYPE="OPERATOR">~</SEQ>
178		<SEQ TYPE="OPERATOR">@</SEQ>
179		<SEQ TYPE="OPERATOR">\</SEQ>
180	</RULES>
181</MODE>