PageRenderTime 14ms CodeModel.GetById 10ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

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

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