forked from jtfmumm/6502asm-sublime
-
Notifications
You must be signed in to change notification settings - Fork 0
/
6502asm.tmLanguage
131 lines (131 loc) · 3.31 KB
/
6502asm.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
<?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>asm</string>
</array>
<key>name</key>
<string>6502 asm</string>
<key>patterns</key>
<array>
<dict>
<key>comment</key>
<string>Arithmetic and logic instructions</string>
<key>match</key>
<string>(?i)\b(adc|and|asl|dec|dex|dey|eor|inc|inx|iny|lsr|ora|rol|ror|sbc)\b</string>
<key>name</key>
<string>keyword.arithlogic.asm</string>
</dict>
<dict>
<key>comment</key>
<string>Branch instructions</string>
<key>match</key>
<string>(?i)\b(bcc|bcs|beq|bmi|bne|bpl|bvc|bvs|jmp|jsr|rti|rts)\b</string>
<key>name</key>
<string>keyword.branch.asm</string>
</dict>
<dict>
<key>comment</key>
<string>Comparison instructions</string>
<key>match</key>
<string>(?i)\b(bit|cmp|cpx|cpy)\b</string>
<key>name</key>
<string>keyword.compare.asm</string>
</dict>
<dict>
<key>comment</key>
<string>Flag setting instructions</string>
<key>match</key>
<string>(?i)\b(clc|cld|cli|clv|sec|sed|sei)\b</string>
<key>name</key>
<string>keyword.flagset.asm</string>
</dict>
<dict>
<key>comment</key>
<string>Load, store, and transfer instructions</string>
<key>match</key>
<string>(?i)\b(lda|ldx|ldy|pha|php|pla|plp|sta|stx|sty|tax|tay|tsx|txa|txs|tya)\b</string>
<key>name</key>
<string>keyword.transfer.asm</string>
</dict>
<dict>
<key>comment</key>
<string>Comment</string>
<key>match</key>
<string>(//|;)(\s|\S)*</string>
<key>name</key>
<string>comment.line.asm</string>
</dict>
<dict>
<key>comment</key>
<string>Comment</string>
<key>match</key>
<string>(//|;)(\s|\S)*</string>
<key>name</key>
<string>comment.punctuation.definition.asm</string>
</dict>
<dict>
<key>comment</key>
<string>Jump label</string>
<key>match</key>
<string>(?i)\b([\w|\d]*)\:</string>
<key>name</key>
<string>support.class.asm</string>
</dict>
<dict>
<key>comment</key>
<string>Directives</string>
<key>match</key>
<string>(?i)\.([\w|\d]*)\b</string>
<key>name</key>
<string>entity.name.function.asm</string>
</dict>
<dict>
<key>comment</key>
<string>String</string>
<key>match</key>
<string>(^|\s)"[\w\s\W]*"</string>
<key>name</key>
<string>string.asm</string>
</dict>
<dict>
<key>comment</key>
<string>String</string>
<key>match</key>
<string>(^|\s)\'[\w\s\W]*\'($|\s)</string>
<key>name</key>
<string>string.asm</string>
</dict>
<dict>
<key>comment</key>
<string>Hex number</string>
<key>match</key>
<string>(?i)\$((\d|[A-F])+)\b</string>
<key>name</key>
<string>constant.numeric.asm</string>
</dict>
<dict>
<key>comment</key>
<string>Binary number</string>
<key>match</key>
<string>(?i)\%([0|1]+)\b</string>
<key>name</key>
<string>constant.numeric.asm</string>
</dict>
<dict>
<key>comment</key>
<string>Decimal number</string>
<key>match</key>
<string>(?i)\#([0-9a-f$%]+)\b</string>
<key>name</key>
<string>constant.numeric.asm</string>
</dict>
</array>
<key>scopeName</key>
<string>source.asm</string>
<key>uuid</key>
<string>2d29de24-0f40-4855-a408-6fe8b3055153</string>
</dict>
</plist>