-
Notifications
You must be signed in to change notification settings - Fork 4
/
modula2.xml
164 lines (141 loc) · 3.68 KB
/
modula2.xml
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
163
164
<?xml version="1.0" encoding="UTF-8" ?>
<!--
modula2.xml
Modula-2 syntax mode definition for Monodevelop/Xamarin Studio
see http://www.monodevelop.com/developers/articles/syntax-mode-definition/
-->
<SyntaxMode name = "Modula-2" mimeTypes="text/x-modula2">
<!-- Mime Type and Filename Extensions -->
<Extension path = "/MonoDevelop/Core/MimeTypes">
<MimeType id="text/x-modula2" _description="Modula-2 source files" isText="true">
<File pattern="*.def" />
<File pattern="*.mod" />
</MimeType>
</Extension>
<!-- Reserved Words -->
<Keywords color = "keyword.selection">
<Word>ALIAS</Word>
<Word>AND</Word>
<Word>ARGLIST</Word>
<Word>ARRAY</Word>
<Word>BARE</Word>
<Word>BEGIN</Word>
<Word>BLUEPRINT</Word>
<Word>BY</Word>
<Word>CASE</Word>
<Word>CONST</Word>
<Word>COPY</Word>
<Word>DEFINITION</Word>
<Word>DIV</Word>
<Word>DO</Word>
<Word>ELSE</Word>
<Word>ELSIF</Word>
<Word>END</Word>
<Word>EXIT</Word>
<Word>FOR</Word>
<Word>FROM</Word>
<Word>GENLIB</Word>
<Word>IF</Word>
<Word>IMPLEMENTATION</Word>
<Word>IMPORT</Word>
<Word>IN</Word>
<Word>LOOP</Word>
<Word>MOD</Word>
<Word>MODULE</Word>
<Word>NEW</Word>
<Word>NONE</Word>
<Word>NOT</Word>
<Word>OF</Word>
<Word>OPAQUE</Word>
<Word>OR</Word>
<Word>POINTER</Word>
<Word>PROCEDURE</Word>
<Word>RECORD</Word>
<Word>REFERENTIAL</Word>
<Word>RELEASE</Word>
<Word>REPEAT</Word>
<Word>RETAIN</Word>
<Word>RETURN</Word>
<Word>SET</Word>
<Word>THEN</Word>
<Word>TO</Word>
<Word>TYPE</Word>
<Word>UNTIL</Word>
<Word>VAR</Word>
<Word>WHILE</Word>
<Word>YIELD</Word>
</Keywords>
<!-- Predefined Identifiers -->
<Keywords color = "keyword.misc">
<Word>NIL</Word>
<Word>EMPTY</Word>
<Word>TRUE</Word>
<Word>FALSE</Word>
<Word>BOOLEAN</Word>
<Word>OCTET</Word>
<Word>CAST</Word>
<Word>CHAR</Word>
<Word>UNICHAR</Word>
<Word>LONGCARD</Word>
<Word>INTEGER</Word>
<Word>LONGINT</Word>
<Word>REAL</Word>
<Word>LONGREAL</Word>
<Word>ABS</Word>
<Word>CAPACITY</Word>
<Word>FIRST</Word>
<Word>APPEND</Word>
<Word>CHR</Word>
<Word>COUNT</Word>
<Word>COROUTINE</Word>
<Word>EXISTS</Word>
<Word>INSERT</Word>
<Word>LENGTH</Word>
<Word>MIN</Word>
<Word>MAX</Word>
<Word>NEG</Word>
<Word>ODD</Word>
<Word>ORD</Word>
<Word>PRED</Word>
<Word>PTR</Word>
<Word>READ</Word>
<Word>READNEW</Word>
<Word>REMOVE</Word>
<Word>SORT</Word>
<Word>SORTNEW</Word>
<Word>SUCC</Word>
<Word>TDYN</Word>
<Word>TFLAGS</Word>
<Word>TLIMIT</Word>
<Word>TMAX</Word>
<Word>TMIN</Word>
<Word>TORDERED</Word>
<Word>TREFC</Word>
<Word>TSCALAR</Word>
<Word>TSIZE</Word>
<Word>TSORTED</Word>
<Word>VALUE</Word>
<Word>WRITE</Word>
<Word>WRITEF</Word>
</Keywords>
<!-- String Literals -->
<Property name="StringQuote">"</Property>
<Property name="StringQuote">'</Property>
<!-- Line Comments -->
<Property name="LineComment">!</Property>
<EolSpan color = "comment.line" rule="Comment" tagColor="comment.tag.line">!</EolSpan>
<!-- Block Comments -->
<Property name="BlockCommentStart">(*</Property>
<Property name="BlockCommentEnd">*)</Property>
<Span color = "comment.block" rule="Comment" tagColor="comment.tag.block">
<Begin>(*</Begin>
<End>*)</End>
</Span>
<!-- Pragmas -->
<Property name="PragmaStart"><*</Property>
<Property name="PragmaEnd">*></Property>
<Span color = "text.preprocessor" rule="pragma" tagColor="text.tag.preprocessor">
<Begin><*</Begin>
<End>*></End>
</Span>
</SyntaxMode>