3 * Description: Standard ML programming language
.
4 * Author: Matthew Fluet <mfluet@acm
.org>
9 comment_face
--- comments
10 function_name_face
---
12 keyword_face
--- keywords
14 string_face
--- strings
16 variable_name_face
---
22 abstype and andalso as case do datatype else
23 end exception fn fun handle if in infix
24 infixr let local nonfix of op open orelse
25 raise rec then type val with withtype while
27 eqtype functor include sharing sig
28 signature struct structure where)) ;'
30 /\b(a
(bstype|nd
(|also
)|s
)|case|d
(atatype|o
)|e
(lse
|nd|qtype|xception
)|f
(n|un
(|ctor
))|handle|i
(f|n
(|clude|fix
(|r
)))|l
(et|ocal
)|nonfix|o
(f|p
(|en
)|relse
)|r
(aise|ec
)|s
(haring|ig
(|nature
)|truct
(|ure
))|t
(hen|ype
)|val|w
(h
(ere|ile
)|ith
(|type
)))\b/;
32 state sml_simple extends
HighlightEntry
44 * Special constants
(strings
)
54 * Special constants
(chars
)
78 state sml_string extends
Highlight
82 call
(sml_string_gap
);
95 state sml_string_gap extends
Highlight
110 state sml_comment extends
Highlight
113 sml_comment_depth
= 1;
117 sml_comment_depth
+= 1;
122 sml_comment_depth
-= 1;
124 if
(sml_comment_depth
== 0)