-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsprak.tmLanguage
156 lines (156 loc) · 4.25 KB
/
sprak.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
<?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>fileTypes</key>
<array>
<string>Sprak</string>
</array>
<key>name</key>
<string>Sublime Sprak Syntax</string>
<key>patterns</key>
<array>
<dict>
<key>captures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>punctuation.definition.comment.sprak</string>
</dict>
</dict>
<key>comment</key>
<string>Comment</string>
<key>match</key>
<string>(#).*</string>
<key>name</key>
<string>comment.line.sprak</string>
</dict>
<dict>
<key>comment</key>
<string>Keyword</string>
<key>match</key>
<string>\b((end )?if|(end )?select|(resume )?next|case|end|void|close|do|else|for|gosub|goto|loop|on|open|return|then|to|until|while)\b</string>
<key>name</key>
<string>keyword.control.sprak</string>
</dict>
<dict>
<key>comment</key>
<string>Operator</string>
<key>match</key>
<string>(\+|=|<|>|<>|AND|OR)</string>
<key>name</key>
<string>keyword.operator.sprak</string>
</dict>
<dict>
<key>comment</key>
<string>Function</string>
<key>match</key>
<string>\b(OnHack|OnIntruder|Count|Range|GetIndexes|Remove|RemoveAll|HasIndex|Append|Type|Round|Int|Mod|Info|Random|GetUser|Name|Time|Width|Height|GetHour|GetMinute|Sleep|Quit|CharToInt|IntToChar|ClearText|Print|Say|PlaySound|Pitch|Sin|Cos|PrintS|Input|Line|Text|Rect|DisplayGraphics|Color|Repeat|HSVtoRGB|RGBToHSV|Lines|GetConnections|Slurp|Connect|DisconnectAll|StringContains|MovePerson|ZapPerson|RestoreCode|Broadcast|IsKeyPressed|HasFloppy|LoadData|ClearData|SaveData|BootFromFloppy|SetMhz|EnableAPI|SetMaxTime|Speed|Charisma|Smelliness|Sleepiness|Drunkenness|Drink|Corruption|IsUser|GetRoom|RemoteFunctionCall|Trippy|TurnLeft|TurnRight|FastForward|Move|QuickBoost|Unlock|Lock|Toggle|Blip|GetChannel|SetChannel|TurnOffSound|TurnOnSound|Log|Position|Teleport|SetWorldPosition)\b</string>
<key>name</key>
<string>support.function.sprak</string>
</dict>
<dict>
<key>comment</key>
<string>Numeric</string>
<key>match</key>
<string>\b(\d(\.\d)?)+</string>
<key>name</key>
<string>constant.numeric.sprak</string>
</dict>
<dict>
<key>comment</key>
<string>Global</string>
<key>match</key>
<string>\b\w+\$</string>
<key>name</key>
<string>constant.global.sprak</string>
</dict>
<dict>
<key>captures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>entity.name.function.sprak</string>
</dict>
</dict>
<key>comment</key>
<string>SUB</string>
<key>match</key>
<string>^(\w+):</string>
<key>name</key>
<string>meta.function.sprak</string>
</dict>
<dict>
<key>comment</key>
<string>Brace, round</string>
<key>match</key>
<string>[\(\)]</string>
<key>name</key>
<string>meta.brace.round.sprak</string>
</dict>
<dict>
<key>comment</key>
<string>Brace, curly</string>
<key>match</key>
<string>[\{\}]</string>
<key>name</key>
<string>meta.brace.curly.sprak</string>
</dict>
<dict>
<key>begin</key>
<string>(\w+\()</string>
<key>beginCaptures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>constant.array.sprak</string>
</dict>
</dict>
<key>comment</key>
<string>Array</string>
<key>end</key>
<string>(\))</string>
<key>endCaptures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>constant.array.sprak</string>
</dict>
</dict>
<key>name</key>
<string>other.array.sprak</string>
<key>patterns</key>
<array>
<dict>
<key>include</key>
<string>$self</string>
</dict>
</array>
</dict>
<dict>
<key>comment</key>
<string>String, double-quoted</string>
<key>match</key>
<string>\"[^"]*\"</string>
<key>name</key>
<string>string.quoted.double.sprak</string>
</dict>
<dict>
<key>comment</key>
<string>String, single-quoted</string>
<key>match</key>
<string>\'[^']*\'</string>
<key>name</key>
<string>string.quoted.single.sprak</string>
</dict>
</array>
<key>scopeName</key>
<string>source.sprak</string>
<key>uuid</key>
<string>2e4fc05e-56be-4036-9f17-8a721250c786</string>
</dict>
</plist>