-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathm3.tmLanguage
162 lines (162 loc) · 4.64 KB
/
m3.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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>name</key>
<string>Modula-3</string>
<key>fileTypes</key>
<array>
<string>m3</string>
<string>mg</string>
<string>i3</string>
<string>ig</string>
</array>
<key>patterns</key>
<array>
<dict>
<key>name</key>
<string>keyword.modula-3</string>
<key>match</key>
<string>\b(AND|ANY|ARRAY|AS|BEGIN|BITS|BRANDED|BY|CASE|CONST|DIV|DO|ELSE|ELSIF|END|EVAL|EXCEPT|EXCEPTION|EXIT|EXPORTS|FINALLY|FOR|FROM|GENERIC|IF|IMPORT|IN|INTERFACE|LOCK|LOOP|METHODS|MOD|MODULE|NOT|OBJECT|OF|OR|OVERRIDES|PROCEDURE|RAISE|RAISES|READONLY|RECORD|REF|REPEAT|RETURN|REVEAL|SET|THEN|TO|TRY|TYPE|TYPECASE|UNSAFE|UNTIL|UNTRACED|VALUE|VAR|WHILE|WITH)\b</string>
</dict>
<dict>
<key>name</key>
<string>constant.language.modula-3</string>
<key>match</key>
<string>\b(ABS|ADDRESS|ADR|ADRSIZE|ANY|BITSIZE|BOOLEAN|BYTESIZE|CARDINAL|CEILING|CHAR|DEC|DISPOSE|EXTENDED|FALSE|FIRST|FLOAT|FLOOR|INC|INTEGER|ISTYPE|LAST|LONGREAL|LOOPHOLE|MAX|MIN|MUTEX|NARROW|NEW|NIL|NULL|NUMBER|ORD|REAL|REFANY|ROOT|ROUND|SUBARRAY|TEXT|TRUE|TRUNC|TYPECODE|VAL)\b</string>
</dict>
<dict>
<key>name</key>
<string>constant.language.modula-3._cm3</string>
<key>match</key>
<string>\b(LONGCARD|LONGINT)\b</string>
</dict>
<dict>
<key>name</key>
<string>constant.numeric.float.modula-3</string>
<key>match</key>
<string>\b[0-9]+\.[0-9]+([DdEeXx][\+\-]?[0-9]+)?\b</string>
</dict>
<dict>
<key>name</key>
<string>constant.numeric.integer.modula-3</string>
<key>match</key>
<string>\b[0-9]+(\_[0-9a-fA-F]+)?L?\b</string>
</dict>
<dict>
<key>name</key>
<string>string.quoted.double.modula-3</string>
<key>begin</key>
<string>"</string>
<key>end</key>
<string>"</string>
<key>patterns</key>
<array>
<dict>
<key>include</key>
<string>#escape_sequence</string>
</dict>
</array>
</dict>
<dict>
<key>name</key>
<string>string.quoted.single.modula-3</string>
<key>begin</key>
<string>'</string>
<key>end</key>
<string>'</string>
<key>patterns</key>
<array>
<dict>
<key>include</key>
<string>#escape_sequence</string>
</dict>
</array>
</dict>
<dict>
<key>name</key>
<string>keyword.control.assert.modula-3._cm3</string>
<key>begin</key>
<string><\*\s*ASSERT\b</string>
<key>end</key>
<string>\*></string>
<key>patterns</key>
<array>
<dict>
<key>include</key>
<string>#pragma</string>
</dict>
</array>
</dict>
<dict>
<key>name</key>
<string>keyword.control.debug.modula-3._cm3</string>
<key>begin</key>
<string><\*\s*DEBUG\b</string>
<key>end</key>
<string>\*></string>
<key>patterns</key>
<array>
<dict>
<key>include</key>
<string>#pragma</string>
</dict>
</array>
</dict>
<dict>
<key>include</key>
<string>#comment</string>
</dict>
<dict>
<key>include</key>
<string>#pragma</string>
</dict>
</array>
<key>repository</key>
<dict>
<key>escape_sequence</key>
<dict>
<key>name</key>
<string>constant.character.escape.modula-3</string>
<key>match</key>
<string>\\[0-7]{3}|\\[\\fnrt\"\']</string>
</dict>
<key>comment</key>
<dict>
<key>name</key>
<string>comment.block.modula-3</string>
<key>begin</key>
<string>\(\*</string>
<key>end</key>
<string>\*\)</string>
<key>patterns</key>
<array>
<dict>
<key>include</key>
<string>#comment</string>
</dict>
</array>
</dict>
<key>pragma</key>
<dict>
<key>name</key>
<string>keyword.control.directive.pragma.modula-3</string>
<key>begin</key>
<string>\<\*</string>
<key>end</key>
<string>\*\></string>
<key>patterns</key>
<array>
<dict>
<key>include</key>
<string>#pragma</string>
</dict>
</array>
</dict>
</dict>
<key>scopeName</key>
<string>source.modula-3</string>
<key>uuid</key>
<string>4c94bed0-63b5-43a2-b2be-d777f02a0a95</string>
</dict>
</plist>