PageRenderTime 51ms CodeModel.GetById 47ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

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

#
XML | 184 lines | 180 code | 3 blank | 1 comment | 0 complexity | d37c60fdb36af7db93e923db4d951737 MD5 | raw file
  1<?xml version="1.0"?>
  2
  3<!DOCTYPE MODE SYSTEM "xmode.dtd">
  4
  5<!-- SML MODE by Ingmar Stein -->
  6<MODE>
  7	<PROPS>
  8		<PROPERTY NAME="commentStart" VALUE="(*"/>
  9		<PROPERTY NAME="commentEnd" VALUE="*)"/>
 10	</PROPS>
 11
 12	<RULES ESCAPE="\" IGNORE_CASE="FALSE" HIGHLIGHT_DIGITS="TRUE">
 13		<!-- whitespace: (space and tab) -->
 14		<WHITESPACE> </WHITESPACE>
 15		<WHITESPACE>	</WHITESPACE>
 16
 17		<!-- comments -->
 18		<SPAN TYPE="COMMENT1">
 19			<BEGIN>(*</BEGIN>
 20			<END>*)</END>
 21		</SPAN>
 22
 23		<!-- character literals -->
 24		<SPAN TYPE="LITERAL1" NO_LINE_BREAK="TRUE">
 25			<BEGIN>#"</BEGIN>
 26			<END>"</END>
 27		</SPAN>
 28
 29		<!-- string literals -->
 30		<SPAN TYPE="LITERAL1" NO_LINE_BREAK="TRUE">
 31			<BEGIN>"</BEGIN>
 32			<END>"</END>
 33		</SPAN>
 34
 35		<!-- built-in operators -->
 36
 37		<!-- infix precedence 7 -->
 38		<SEQ TYPE="OPERATOR">/</SEQ>
 39		<SEQ TYPE="OPERATOR">*</SEQ>
 40
 41		<!-- infix precedence 6 -->
 42		<SEQ TYPE="OPERATOR">+</SEQ>
 43		<SEQ TYPE="OPERATOR">-</SEQ>
 44		<SEQ TYPE="OPERATOR">^</SEQ>
 45
 46		<!-- infix precedence 5 -->
 47		<SEQ TYPE="OPERATOR">::</SEQ>
 48		<SEQ TYPE="OPERATOR">@</SEQ>
 49
 50		<!-- infix precedence 4 -->
 51		<SEQ TYPE="OPERATOR">=</SEQ>
 52		<SEQ TYPE="OPERATOR">&lt;&gt;</SEQ>
 53		<SEQ TYPE="OPERATOR">&lt;=</SEQ>
 54		<SEQ TYPE="OPERATOR">&lt;</SEQ>
 55		<SEQ TYPE="OPERATOR">&gt;=</SEQ>
 56		<SEQ TYPE="OPERATOR">&gt;</SEQ>
 57
 58		<!-- infix precedence 3 -->
 59		<SEQ TYPE="OPERATOR">:=</SEQ>
 60
 61		<!-- reserved words -->
 62		<SEQ TYPE="NULL">(</SEQ>
 63		<SEQ TYPE="NULL">)</SEQ>
 64		<SEQ TYPE="NULL">[</SEQ>
 65		<SEQ TYPE="NULL">]</SEQ>
 66		<SEQ TYPE="NULL">{</SEQ>
 67		<SEQ TYPE="NULL">}</SEQ>
 68		<SEQ TYPE="NULL">,</SEQ>
 69		<SEQ TYPE="NULL">:&gt;</SEQ>
 70		<SEQ TYPE="NULL">:</SEQ>
 71		<SEQ TYPE="NULL">;</SEQ>
 72		<SEQ TYPE="NULL">...</SEQ>
 73		<SEQ TYPE="NULL">_</SEQ>
 74		<SEQ TYPE="NULL">|</SEQ>
 75		<SEQ TYPE="NULL">=&gt;</SEQ>
 76		<SEQ TYPE="NULL">-&gt;</SEQ>
 77		<SEQ TYPE="NULL">#</SEQ>
 78
 79		<KEYWORDS IGNORE_CASE="FALSE">
 80			<!-- built-in operators -->
 81
 82			<!-- infix precedence 7 -->
 83			<OPERATOR>div</OPERATOR>
 84			<OPERATOR>mod</OPERATOR>
 85
 86			<!-- infix precedence 3 -->
 87			<OPERATOR>o</OPERATOR>
 88
 89			<!-- infix precedence 0 -->
 90			<OPERATOR>before</OPERATOR>
 91
 92			<!-- reserved words -->
 93			<KEYWORD1>abstype</KEYWORD1>
 94			<KEYWORD1>and</KEYWORD1>
 95			<KEYWORD1>andalso</KEYWORD1>
 96			<KEYWORD1>as</KEYWORD1>
 97			<KEYWORD1>case</KEYWORD1>
 98			<KEYWORD1>do</KEYWORD1>
 99			<KEYWORD1>datatype</KEYWORD1>
100			<KEYWORD1>else</KEYWORD1>
101			<KEYWORD1>end</KEYWORD1>
102			<KEYWORD1>eqtype</KEYWORD1>
103			<KEYWORD1>exception</KEYWORD1>
104			<KEYWORD1>fn</KEYWORD1>
105			<KEYWORD1>fun</KEYWORD1>
106			<KEYWORD1>functor</KEYWORD1>
107			<KEYWORD1>handle</KEYWORD1>
108			<KEYWORD1>if</KEYWORD1>
109			<KEYWORD1>in</KEYWORD1>
110			<KEYWORD1>include</KEYWORD1>
111			<KEYWORD1>infix</KEYWORD1>
112			<KEYWORD1>infixr</KEYWORD1>
113			<KEYWORD1>let</KEYWORD1>
114			<KEYWORD1>local</KEYWORD1>
115			<KEYWORD1>nonfix</KEYWORD1>
116			<KEYWORD1>of</KEYWORD1>
117			<KEYWORD1>op</KEYWORD1>
118			<KEYWORD1>open</KEYWORD1>
119			<KEYWORD1>orelse</KEYWORD1>
120			<KEYWORD1>raise</KEYWORD1>
121			<KEYWORD1>rec</KEYWORD1>
122			<KEYWORD1>sharing</KEYWORD1>
123			<KEYWORD1>sig</KEYWORD1>
124			<KEYWORD1>signature</KEYWORD1>
125			<KEYWORD1>struct</KEYWORD1>
126			<KEYWORD1>structure</KEYWORD1>
127			<KEYWORD1>then</KEYWORD1>
128			<KEYWORD1>type</KEYWORD1>
129			<KEYWORD1>val</KEYWORD1>
130			<KEYWORD1>where</KEYWORD1>
131			<KEYWORD1>with</KEYWORD1>
132			<KEYWORD1>withtype</KEYWORD1>
133			<KEYWORD1>while</KEYWORD1>
134
135			<!-- built-in types -->
136			<KEYWORD3>array</KEYWORD3>
137			<KEYWORD3>bool</KEYWORD3>
138			<KEYWORD3>char</KEYWORD3>
139			<KEYWORD3>exn</KEYWORD3>
140			<KEYWORD3>frag</KEYWORD3>
141			<KEYWORD3>int</KEYWORD3>
142			<KEYWORD3>list</KEYWORD3>
143			<KEYWORD3>option</KEYWORD3>
144			<KEYWORD3>order</KEYWORD3>
145			<KEYWORD3>real</KEYWORD3>
146			<KEYWORD3>ref</KEYWORD3>
147			<KEYWORD3>string</KEYWORD3>
148			<KEYWORD3>substring</KEYWORD3>
149			<KEYWORD3>unit</KEYWORD3>
150			<KEYWORD3>vector</KEYWORD3>
151			<KEYWORD3>word</KEYWORD3>
152			<KEYWORD3>word8</KEYWORD3>
153
154			<!-- build-in exception constructors -->
155			<KEYWORD2>Bind</KEYWORD2>
156			<KEYWORD2>Chr</KEYWORD2>
157			<KEYWORD2>Domain</KEYWORD2>
158			<KEYWORD2>Div</KEYWORD2>
159			<KEYWORD2>Fail</KEYWORD2>
160			<KEYWORD2>Graphic</KEYWORD2>
161			<KEYWORD2>Interrupt</KEYWORD2>
162			<KEYWORD2>Io</KEYWORD2>
163			<KEYWORD2>Match</KEYWORD2>
164			<KEYWORD2>Option</KEYWORD2>
165			<KEYWORD2>Ord</KEYWORD2>
166			<KEYWORD2>Overflow</KEYWORD2>
167			<KEYWORD2>Size</KEYWORD2>
168			<KEYWORD2>Subscript</KEYWORD2>
169			<KEYWORD2>SysErr</KEYWORD2>
170
171			<!-- built-in literals -->
172			<LITERAL2>false</LITERAL2>
173			<LITERAL2>true</LITERAL2>
174			<LITERAL2>QUOTE</LITERAL2>
175			<LITERAL2>ANTIQUOTE</LITERAL2>
176			<LITERAL2>nil</LITERAL2>
177			<LITERAL2>NONE</LITERAL2>
178			<LITERAL2>SOME</LITERAL2>
179			<LITERAL2>LESS</LITERAL2>
180			<LITERAL2>EQUAL</LITERAL2>
181			<LITERAL2>GREATER</LITERAL2>
182		</KEYWORDS>
183	</RULES>
184</MODE>