-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathManiaScript.tmLanguage
222 lines (222 loc) · 7.62 KB
/
ManiaScript.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
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
<?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>Script.txt</string>
</array>
<key>firstLineMatch</key>
<string>#RequireContext </string>
<!-- This is unused in ST -->
<!--<key>foldingStartMarker</key>
<string>(?x)
/\*\*(?!\*)
|^(?![^{]*?//|[^{]*?/\*(?!.*?\*/.*?\{)).*?\{\s*($|//|/\*(?!.*?\*/.*\S))
</string>
<key>foldingStopMarker</key>
<string>(?<!\*)\*\*/|^\s*\}</string>-->
<key>keyEquivalent</key>
<string>^~M</string>
<key>name</key>
<string>ManiaScript</string>
<key>patterns</key>
<array>
<dict>
<key>include</key>
<string>#comments</string>
</dict>
<dict>
<key>match</key>
<string>\b(break|case|continue|default|else|for|foreach|if|return|switch|while|as|declare|in|netwrite|netread|metadata)\b</string>
<key>name</key>
<string>keyword.control.ms</string>
</dict>
<dict>
<key>match</key>
<string>#\b(Include|RequireContext|Setting|Const|Extends)\b</string>
<key>name</key>
<string>keyword.language.ms</string>
</dict>
<dict>
<key>match</key>
<string>\b(wait|sleep|assert|log)\b</string>
<key>name</key>
<string>entity.name.function.ms</string>
</dict>
<!-- From source.h -->
<!-- CLASSES -->
<dict>
<key>match</key>
<string>\b(Void|Integer|Real|Boolean|Text|Vec2|Vec3|Int3|Ident)\b</string>
<key>name</key>
<string>storage.type.ms</string>
</dict>
<!-- STRUCTS -->
<dict>
<key>match</key>
<string>\b(CMlScript|CMlEntry|CMlFileEntry|CMlLabel|CMlMediaPlayer|CMlQuad|CMlGauge|CManiaplanetPlugin|CTmMode|CSmMode|CTmMlScriptIngame|CSmMlScriptIngame|CEditorPlugin|CSmMapType|CTmMapType|CNod|CMlPage|CMlEvent|CXmlManager|CHttpManager|CMlControl|CUser|CManiaplanetPluginEvent|CTitle|CGameCtnNetServerInfo|CMap|CUILayer|CBuddiesManager|CMode|CTmPlayer|CTmScore|CTmModeEvent|CSmObject|CSmObjectAnchor|CSmPlayer|CSmPlayerDriver|CSmModeEvent|CSmBase|CSmBlock|CSmBlockSpawn|CSmBlockPole|CSmScore|CSmScriptBotPath|CMlScriptIngame|CTmMlPlayer|CTeam|CBlockModel|CMacroblockModel|CBlock|CAnchorData|CEditorPluginEvent|CMapType|CMlFrame|CXmlDocument|CHttpRequest|CGameNetServerInfo|CMapInfo|CBuddy|CBuddiesEvent|CUIConfigMgr|CXmlRpc|CPlayer|CTmResult|CScore|CGhost|CSmSector|CSmGauge|CUIConfig|CCollector|CBlockModelVariantGround|CBlockModelVariantAir|CBlockUnit|CXmlNode|CNetMasterHost|CXmlRpcEvent|CBlockModelVariant|CBlockUnitModel|CBlockModelClip)\b</string>
<key>name</key>
<string>storage.type.ms</string>
</dict>
<!-- Variable -->
<dict>
<key>match</key>
<string>\b(Status|Player|Position|Vel|ItemName|ItemModelId|Score|SpawnStatus|StartTime|EndTime|AmmoGain|AmmoPower|AutoSwitchWeapon|CurWeapon|CurAmmo|CurAmmoMax|CurAmmoUnit|Armor|ArmorMax|ArmorGain|ArmorReplenishGain|ArmorPower|Stamina|StaminaMax||StaminaGain|StaminaPower|SpeedPower|UseAlternateWeaponVisual|IsHighlighted|EnergyLevel|ForceColor|ForceModelId|ThrowSpeed|CurrentClan|IdleDuration|AimYaw|AimPitch|AimDirection|IsUnderground|IsTouchingGround|IsInOffZone|IsCapturing|BlockPole|Objects|IsFakePlayer|IsBot|Driver|Points|RoundPoints|NbEliminationsInflicted|NbEliminationsTaken|NbRespawnsRequested|DamageInflicted|DamageTaken|Behaviour|AggroRadius|DisengageDistance|Agressivity|PathOffset|PathSpeedCoef|UseOldShootingSystem|Accuracy|ReactionTime|ShootPeriodMin|ShootPeriodMax|RocketAnticipation|Fov|AttackFilter|Target|IsStuck|Patrol_Mode|Escape_AnchorPoint|Escape_DistanceSafe|Escape_DistanceMinEscape|Escape_DistanceMaxEscape|Saunter_AnchorPoint|Saunter_BaseChillingTime|Saunter_ChillingTimeDelta|Saunter_Radius|Scripted_ForceAimInMoveDir|ForcedTarget|TargetsToAvoid|InputWalkAnalog|InputStrafeAnalog|InputIsGunTrigger|InputIsAction)\b</string>
<key>name</key>
<string>storage.type.ms</string>
</dict>
<!-- ENUMS -->
<dict>
<key>match</key>
<string>\b(LinkType|EUISound|EContext|ELinkType|ETmScoreSortOrder|ETMRespawnBehaviour|ETmRaceChronoBehaviour|EWeapon|CardinalDirections|PlaceMode|EditMode|Type|AlignHorizontal|AlignVertical|EType|EUILayerType|EConnectionStatus|EDesiredConnectionStatus|EMedal|EType|EStuntFigure|ESpawnStatus|EType|LinkType|ERaceState|EWayPointType|EProdState|CardinalDirections|Type|ValidationStatus|EControlType|EType|ETmRaceResultCriteria|EUISequence|EUIStatus|EVisibility|ELabelsVisibility|EAvatarVariant|EUISound|ENoticeLevel|EnumAutoTerrainPlaceType|EType|CardinalDirEnum|MultiDirEnum|EnumClipType)\b</string>
<key>name</key>
<string>storage.type.ms</string>
</dict>
<!-- End source mess -->
<dict>
<key>match</key>
<string>\bg[A-Z]\w*\b</string>
<key>name</key>
<string>variable.other.readwrite.global.mac-classic.ms</string>
</dict>
<dict>
<key>match</key>
<string>\b(Null|NullId|True|False)\b</string>
<key>name</key>
<string>constant.language.ms</string>
</dict>
<dict>
<key>match</key>
<string>\b([0-9]+)?\b</string>
<key>name</key>
<string>constant.numeric.ms</string>
</dict>
<dict>
<key>match</key>
<string>\bUI[a-zA-Z]*?\b</string>
<key>name</key>
<string>storage.type.ms</string>
</dict>
<dict>
<key>begin</key>
<string>"""</string>
<key>beginCaptures</key>
<dict>
<key>0</key>
<dict>
<key>name</key>
<string>punctuation.definition.string.begin.ms</string>
</dict>
</dict>
<key>end</key>
<string>"""</string>
<key>endCaptures</key>
<dict>
<key>0</key>
<dict>
<key>name</key>
<string>punctuation.definition.string.end.ms</string>
</dict>
</dict>
<key>name</key>
<string>string.quoted.double.source.cs</string>
<key>patterns</key>
<array>
<dict>
<key>match</key>
<string>{{{.+}}}</string>
<key>name</key>
<string>constant.character.escape.source.cs</string>
</dict>
</array>
</dict>
<dict>
<key>begin</key>
<string>"</string>
<key>beginCaptures</key>
<dict>
<key>0</key>
<dict>
<key>name</key>
<string>punctuation.definition.string.begin.source.cs</string>
</dict>
</dict>
<key>end</key>
<string>"</string>
<key>endCaptures</key>
<dict>
<key>0</key>
<dict>
<key>name</key>
<string>punctuation.definition.string.end.source.cs</string>
</dict>
</dict>
<key>name</key>
<string>string.quoted.double.source.cs</string>
<key>patterns</key>
<array>
<dict>
<key>match</key>
<string>\\.</string>
<key>name</key>
<string>constant.character.escape.source.cs</string>
</dict>
</array>
</dict>
<dict>
<key>match</key>
<string>\b([\w\d]+::[\w\d]+)?\b</string>
<key>name</key>
<string>entity.name.function.c</string>
</dict>
<dict>
<key>match</key>
<string>\b(\.(count|exists|existskey|remove|removekey|add|sort|keyof))?\b</string>
<key>name</key>
<string>entity.name.function.c</string>
</dict>
</array>
<key>repository</key>
<dict>
<key>comments</key>
<dict>
<key>patterns</key>
<array>
<dict>
<key>begin</key>
<string>/\*</string>
<key>captures</key>
<dict>
<key>0</key>
<dict>
<key>name</key>
<string>meta.toc-list.banner.block.ms</string>
</dict>
</dict>
<key>end</key>
<string>\*/\n?</string>
<key>name</key>
<string>comment.block.ms</string>
</dict>
<dict>
<key>captures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>meta.toc-list.banner.block.ms</string>
</dict>
</dict>
<key>match</key>
<string>(//).*$\n?</string>
<key>name</key>
<string>comment.block.ms</string>
</dict>
</array>
</dict>
</dict>
<key>scopeName</key>
<string>source.ms</string>
</dict>
</plist>