-
Notifications
You must be signed in to change notification settings - Fork 5
/
A2S.tmLanguage
132 lines (132 loc) · 3.5 KB
/
A2S.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
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>fileTypes</key>
<array>
<string>a2s</string>
</array>
<key>name</key>
<string>Audiality 2 Script</string>
<key>patterns</key>
<array>
<dict>
<key>comment</key>
<string>Compiler directives</string>
<key>match</key>
<string>\b(import|export|as|def|struct|wire|tempo|wave)\b</string>
<key>name</key>
<string>storage.type</string>
</dict>
<dict>
<key>comment</key>
<string>Keywords and instructions</string>
<key>match</key>
<string>\b(end|return|run|wait|sleep|wake|force|jump|loop|jz|jnz|jg|jl|jge|jle|if|ifz|ifl|ifg|ifle|ifge|for|else|while|wz|wl|wg|wle|wge|kill|detach|d|td|quant|rand|p2d|neg|set|ramp|debug|sizeof|and|or|xor|not)\b</string>
<key>name</key>
<string>keyword.control</string>
</dict>
<dict>
<key>comment</key>
<string>Fixed VM control registers</string>
<key>match</key>
<string>\b(tick|tr)\b</string>
<key>name</key>
<string>storage.type</string>
</dict>
<dict>
<key>comment</key>
<string>Builtin waves</string>
<key>match</key>
<string>\b(off|pulse1|pulse2|pulse3|pulse4|pulse5|pulse10|pulse15|pulse20|pulse25|pulse30|pulse35|pulse40|pulse45|pulse50|square|saw|triangle|sine|hsine|asine|qsine|noise)\b</string>
<key>name</key>
<string>storage.type</string>
</dict>
<dict>
<key>comment</key>
<string>Numeric literal</string>
<key>match</key>
<string>\b((([0-9]+\.?[0-9]*)|(\.[0-9]+))(n|f)?|([0-9]+(n|f)[0-9]*))?\b</string>
<key>name</key>
<string>constant.numeric</string>
</dict>
<dict>
<key>comment</key>
<string>Operator</string>
<key>match</key>
<string>([-*=+!;:@])</string>
<key>name</key>
<string>keyword.operator</string>
</dict>
<dict>
<key>comment</key>
<string>Braces, brackets, parentheses...</string>
<key>match</key>
<string>([\{\}\(\)])</string>
<key>name</key>
<string>punctuation.separator.parameters.c</string>
</dict>
<dict>
<key>begin</key>
<string>\"</string>
<key>beginCaptures</key>
<dict>
<key>0</key>
<dict>
<key>name</key>
<string>punctuation.definition.string.begin</string>
</dict>
</dict>
<key>comment</key>
<string>String literal</string>
<key>end</key>
<string>\"</string>
<key>endCaptures</key>
<dict>
<key>0</key>
<dict>
<key>name</key>
<string>punctuation.definition.string.end</string>
</dict>
</dict>
<key>name</key>
<string>string.quoted.double</string>
<key>patterns</key>
<array>
<dict>
<key>match</key>
<string>\\(\\|[abefnprtv'"?]|[0-3]\d{,2}|[4-7]\d?|x[a-fA-F0-9]{,2}|u[a-fA-F0-9]{,4}|U[a-fA-F0-9]{,8})</string>
<key>name</key>
<string>constant.character.escape</string>
</dict>
</array>
<key>string_escaped_char</key>
<false/>
</dict>
<dict>
<key>begin</key>
<string>/\*</string>
<key>comment</key>
<string>C style comment</string>
<key>end</key>
<string>\*/</string>
<key>name</key>
<string>comment.block</string>
</dict>
<dict>
<key>begin</key>
<string>//</string>
<key>comment</key>
<string>C++ style one-line comment</string>
<key>end</key>
<string>$\n?</string>
<key>name</key>
<string>comment.block</string>
</dict>
</array>
<key>scopeName</key>
<string>source.audiality_2_script</string>
<key>uuid</key>
<string>f064a4ef-4149-4676-8762-c77e4c85fcab</string>
</dict>
</plist>