-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdasm16.tmLanguage
More file actions
118 lines (118 loc) · 2.9 KB
/
dasm16.tmLanguage
File metadata and controls
118 lines (118 loc) · 2.9 KB
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
<?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>dasm</string>
<string>dasm16</string>
</array>
<key>name</key>
<string>DASM-16</string>
<key>patterns</key>
<array>
<dict>
<key>captures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>support.type.label.dasm</string>
</dict>
<key>2</key>
<dict>
<key>name</key>
<string>variable.label.dasm</string>
</dict>
</dict>
<key>match</key>
<string>^(:)([a-z][a-z_]*)\b</string>
</dict>
<dict>
<key>match</key>
<string>(?i)^\s+(set|add|sub|mul|div|mod|shl|shr|and|bor|xor|ife|ifn|ifg|ifb)\b</string>
<key>name</key>
<string>support.function.opcode.basic.dasm</string>
</dict>
<dict>
<key>match</key>
<string>(?i)^\s+jsr\b</string>
<key>name</key>
<string>support.function.opcode.nonbasic.dasm</string>
</dict>
<dict>
<key>match</key>
<string>(?i)^\s+dat\b</string>
<key>name</key>
<string>support.function.data.declaration.dasm</string>
</dict>
<dict>
<key>captures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>support.other.register.dasm</string>
</dict>
<key>2</key>
<dict>
<key>name</key>
<string>support.other.spValue.dasm</string>
</dict>
<key>3</key>
<dict>
<key>name</key>
<string>support.other.overflow.dasm</string>
</dict>
</dict>
<key>match</key>
<string>(?i)\b(([a-ci-jx-z]|pc|sp)|(pop|peek|push)|o)\b</string>
</dict>
<dict>
<key>match</key>
<string>\b([d-hk-nqrt-w][a-z_]*)|([a-ci-jox-z][a-z_]+)|(s([a-oq-z_][a-z_]*|(p[a-z_]))?)|(p(([abdf-np-tv-z_][a-z_]*)|(c[a-z_]+)|(e(([a-df-z_][a-z_]*)|(e(([a-jl-z_][a-z_]*)|(k[a-z_]+))?))?)|(o(([a-oq-z_][a-z_]*)|(p[a-z_]+))?)|(u(([a-rt-z_][a-z_]*)|(s(([a-gi-z_][a-z_]*)|(h[a-z_]+))?))?))?)\b</string>
<key>name</key>
<string>variable.label.dasm</string>
</dict>
<dict>
<key>match</key>
<string>;[^$]*</string>
<key>name</key>
<string>comment.line.semicolon.dasm</string>
</dict>
<dict>
<key>match</key>
<string>"[^$^"]+"</string>
<key>name</key>
<string>string.quoted.double.dasm</string>
</dict>
<dict>
<key>captures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>constant.numeric.hexadecimal.dasm</string>
</dict>
<key>3</key>
<dict>
<key>name</key>
<string>constant.numeric.decimal.dasm</string>
</dict>
</dict>
<key>match</key>
<string>(0(x|X)[\h]+)|([\d]+)</string>
</dict>
<dict>
<key>match</key>
<string>\+|-</string>
<key>name</key>
<string>keyword.operator.dasm</string>
</dict>
</array>
<key>scopeName</key>
<string>source.dasm</string>
<key>uuid</key>
<string>28356f7f-d329-42ef-bad9-6ba2de8f7402</string>
</dict>
</plist>