-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbasic7.lang
71 lines (64 loc) · 2.13 KB
/
basic7.lang
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
<?xml version="1.0" encoding="UTF-8"?>
<language id="basic7" name="CBM BASIC 7.0" version="2.0" section="Source">
<metadata/>
<styles>
<style id="linenumber" _name="Line number" map-to="def:comment"/>
<style id="comment" _name="Comment" map-to="def:comment"/>
<style id="keyword" _name="Keyword" map-to="def:keyword"/>
<style id="string" _name="String" map-to="def:string"/>
</styles>
<keyword-char-class>([\w#])</keyword-char-class>
<definitions>
<context id="basic7">
<include>
<context id="linenumber" style-ref="linenumber">
<match>^\d+</match>
</context>
<context id="comment" style-ref="comment">
<start>rem</start>
<end>$</end>
</context>
<context id="string" end-at-line-end="true" style-ref="string">
<start>"</start>
<end>"</end>
</context>
<context id="keywords" style-ref="keyword">
<keyword>close</keyword>
<keyword>clr</keyword>
<keyword>cmd</keyword>
<keyword>cont</keyword>
<keyword>data</keyword>
<keyword>def</keyword>
<keyword>dim</keyword>
<keyword>end</keyword>
<keyword>for</keyword>
<keyword>get</keyword>
<keyword>get#</keyword>
<keyword>gosub</keyword>
<keyword>goto</keyword>
<keyword>if</keyword>
<keyword>input</keyword>
<keyword>input#</keyword>
<keyword>let</keyword>
<keyword>list</keyword>
<keyword>load</keyword>
<keyword>new</keyword>
<keyword>next</keyword>
<keyword>open</keyword>
<keyword>poke</keyword>
<keyword>print</keyword>
<keyword>print#</keyword>
<keyword>read</keyword>
<keyword>restore</keyword>
<keyword>return</keyword>
<keyword>run</keyword>
<keyword>save</keyword>
<keyword>stop</keyword>
<keyword>sys</keyword>
<keyword>verify</keyword>
<keyword>wait</keyword>
</context>
</include>
</context>
</definitions>
</language>