We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 190c5da commit d21d689Copy full SHA for d21d689
editor/Crabox.sublime-syntax
@@ -0,0 +1,28 @@
1
+%YAML 1.2
2
+---
3
+
4
+name: Crabox
5
+file_extensions:
6
+ - crabox
7
+scope: source.crabox
8
+contexts:
9
+ main:
10
+ - match: ';'
11
+ scope: punctuation.definition.comment.crabox
12
+ push: line_comment
13
14
+ - match: '\b(zero|inc|dec|load|store|brnz|j|jal|or|add|sub|inv|noop)\b'
15
+ scope: keyword.other.crabox
16
+ comment: 'Instruction'
17
18
+ - match: '\b(r0|r1|r2|r3|r4|r5|r6|ap)\b'
19
+ scope: constant.other.crabox
20
+ comment: 'Register'
21
22
+ - match: '\b(-)?[0-9.]+\b'
23
+ scope: constant.numeric.crabox
24
25
+ line_comment:
26
+ - meta_scope: comment.line.crabox
27
+ - match: $
28
+ pop: true
0 commit comments