@@ -12,11 +12,11 @@ repository:
12
12
builtin :
13
13
patterns :
14
14
- name : constant.language.88.redcode
15
- match : \b(CORESIZE|MAXPROCESSES|MAXCYCLES|MAXLENGTH)\b
15
+ match : ' \b(CORESIZE|MAXPROCESSES|MAXCYCLES|MAXLENGTH)\b'
16
16
- name : constant.language.94.redcode
17
- match : \b(MINDISTANCE|ROUNDS|CURLINE|VERSION|WARRIORS)\b
17
+ match : ' \b(MINDISTANCE|ROUNDS|CURLINE|VERSION|WARRIORS)\b'
18
18
- name : constant.language.p-space.redcode
19
- match : \b(PSPACESIZE)\b
19
+ match : ' \b(PSPACESIZE)\b'
20
20
21
21
directive :
22
22
begin : ' (;)'
@@ -27,46 +27,46 @@ repository:
27
27
patterns :
28
28
- include : ' #directive_with_argument'
29
29
- name : keyword.operator.directive.main.redcode
30
- match : (?i)(redcode)(?!-)
30
+ match : ' (?i)(redcode)(?!-)'
31
31
- name : keyword.operator.directive.koth.main.redcode
32
- match : (?i)(redcode-[a-zA-Z0-9]+)
32
+ match : ' (?i)(redcode-[a-zA-Z0-9]+)'
33
33
- name : keyword.operator.directive.debug.redcode
34
- match : (?i)(debug)[[:blank:]]+(off|static)
34
+ match : ' (?i)(debug)[[:blank:]]+(off|static)'
35
35
- name : keyword.operator.directive.trace.redcode
36
- match : (?i)(trace)[[:blank:]]+(off)
36
+ match : ' (?i)(trace)[[:blank:]]+(off)'
37
37
- name : comment.line.semicolon.redcode
38
38
match : ' .*'
39
39
40
40
directive_with_argument :
41
41
patterns :
42
- - match : (?i)(assert)\b(.*)
42
+ - match : ' (?i)(assert)\b(.*)'
43
43
captures :
44
44
' 1 ' :
45
45
name : keyword.operator.directive.redcode
46
46
' 2 ' :
47
47
patterns :
48
48
- include : ' #expression'
49
49
50
- - match : (?i)(author|break|name)\b(.*)
50
+ - match : ' (?i)(author|break|name)\b(.*)'
51
51
captures :
52
52
' 1 ' :
53
53
name : keyword.operator.directive.redcode
54
54
' 2 ' :
55
55
name : string.unquoted.directive.argument.redcode
56
56
57
- - match : (?i)(help|kill|status|strategy|test|password|newpasswd|newredcode|url|version|date)\b(.*)
57
+ - match : ' (?i)(help|kill|status|strategy|test|password|newpasswd|newredcode|url|version|date)\b(.*)'
58
58
name : keyword.operator.directive.koth.redcode
59
59
captures :
60
60
' 2 ' :
61
61
name : string.unquoted.directive.koth.argument.redcode
62
62
63
63
eof :
64
64
name : comment.block.end.redcode
65
- begin : ' \b(END)\b(.*)'
65
+ begin : ' (?i) \b(END)\b(.*)'
66
66
# no end defined, the rest of the file should be treated as a comment
67
67
captures :
68
68
' 1 ' :
69
- name : keyword.operator.control.psuedo -opcode.88.end.redcode
69
+ name : keyword.operator.control.pseudo -opcode.88.end.redcode
70
70
' 2 ' :
71
71
# Allow comments + expression on the same line
72
72
patterns :
@@ -81,7 +81,7 @@ repository:
81
81
- name : keyword.operator.logical.redcode
82
82
match : ' [=<>&|!]'
83
83
- name : constant.numeric.redcode
84
- match : \b\d+\b
84
+ match : ' \b\d+\b'
85
85
- include : ' #builtin'
86
86
- include : ' #label'
87
87
- include : ' #paren_expression'
@@ -104,17 +104,17 @@ repository:
104
104
opcode :
105
105
patterns :
106
106
- name : keyword.operator.control.opcode.88.redcode
107
- match : (?i)\b(DAT|MOV|ADD|SUB|JMP|JMZ|JMN|DJN|SLT|CMP|SPL)\b
107
+ match : ' (?i)\b(DAT|MOV|ADD|SUB|JMP|JMZ|JMN|DJN|SLT|CMP|SPL)\b'
108
108
- name : keyword.operator.control.opcode.94.redcode
109
- match : (?i)\b(MUL|DIV|MOD|SEQ|SNE|NOP)\b
109
+ match : ' (?i)\b(MUL|DIV|MOD|SEQ|SNE|NOP)\b'
110
110
- name : keyword.operator.control.opcode.p-space.redcode
111
- match : (?i)\b(LDP|STP)\b
112
- - name : keyword.operator.control.psuedo -opcode.88.redcode
113
- match : (?i)\b(EQU|FOR|ROF)\b
114
- - name : keyword.operator.control.psuedo -opcode.94.redcode
115
- match : (?i)\b(ORG)\b
116
- - name : keyword.operator.control.psuedo -opcode.p-space.redcode
117
- match : (?i)\b(PIN)\b
111
+ match : ' (?i)\b(LDP|STP)\b'
112
+ - name : keyword.operator.control.pseudo -opcode.88.redcode
113
+ match : ' (?i)\b(EQU|FOR|ROF)\b'
114
+ - name : keyword.operator.control.pseudo -opcode.94.redcode
115
+ match : ' (?i)\b(ORG)\b'
116
+ - name : keyword.operator.control.pseudo -opcode.p-space.redcode
117
+ match : ' (?i)\b(PIN)\b'
118
118
119
119
paren_expression :
120
120
name : expression.group
0 commit comments