forked from seanjames777/SML-Language-Definition
-
Notifications
You must be signed in to change notification settings - Fork 0
/
sml.tmLanguage
72 lines (72 loc) · 2.04 KB
/
sml.tmLanguage
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>fileTypes</key>
<array>
<string>ml</string>
<string>sml</string>
<string>cm</string>
<string>sig</string>
</array>
<key>name</key>
<string>SML</string>
<key>patterns</key>
<array>
<dict>
<key>comment</key>
<string>SML keywords</string>
<key>match</key>
<string>\b(EQUAL|GREATER|LESS|NONE|SOME|abstraction|abstype|and|andalso|array|as|before|bool|case|char|datatype|do|else|end|eqtype|exception|exn|false|fn|fun|functor|handle|if|in|include|infix|infixr|int|let|list|local|nil|nonfix|not|o|of|op|open|option|orelse|overload|print|raise|real|rec|ref|sharing|sig|signature|string|struct|structure|substring|then|true|type|unit|val|vector|where|while|with|withtype|word)\b</string>
<key>name</key>
<string>keyword.source.sml</string>
</dict>
<dict>
<key>comment</key>
<string>Numeric constants</string>
<key>match</key>
<string>\b[0-9]+\b</string>
<key>name</key>
<string>constant.numeric.sml</string>
</dict>
<dict>
<key>comment</key>
<string>Built in types</string>
<key>match</key>
<string>\b[A-Z]([A-z0-9]*)\b</string>
<key>name</key>
<string>support.type.sml</string>
</dict>
<dict>
<key>comment</key>
<string>String constant</string>
<key>match</key>
<string>"(\\"|[^"])*"</string>
<key>name</key>
<string>string.sml</string>
</dict>
<dict>
<key>begin</key>
<string>\(\*</string>
<key>comment</key>
<string>Comment</string>
<key>end</key>
<string>\*\)</string>
<key>name</key>
<string>comment.sml</string>
</dict>
<dict>
<key>comment</key>
<string>Character</string>
<key>match</key>
<string>(\(\)|=>|::|\[\]|->|:>)</string>
<key>name</key>
<string>constant.character.sml</string>
</dict>
</array>
<key>scopeName</key>
<string>source.sml</string>
<key>uuid</key>
<string>c75fce86-de5e-40f0-b42e-1504c17b784a</string>
</dict>
</plist>