merlin cleanups

This commit is contained in:
Kelvin Sherlock 2018-09-09 23:56:48 -04:00
parent 0692c4a4e8
commit 3ba6eb1d9f

View File

@ -92,6 +92,11 @@ contexts:
- match: \b(?i:PMC|ORG|REL|TYP|DUM|DEND|END|CHK|DAT|ERR|EXT|EXD|OBJ|VAR|AST|DAT|PAG|SKP|CHK|ERR|KBD|PAU|SW|USR)\b - match: \b(?i:PMC|ORG|REL|TYP|DUM|DEND|END|CHK|DAT|ERR|EXT|EXD|OBJ|VAR|AST|DAT|PAG|SKP|CHK|ERR|KBD|PAU|SW|USR)\b
scope: keyword.directive scope: keyword.directive
# IF MX..
# IF char=]\d
- match: \b(?i:IF)\b
scope: keyword.control.conditional
set: if-operand
- match: \b(?i:DO|ELSE|IF|FIN)\b - match: \b(?i:DO|ELSE|IF|FIN)\b
scope: keyword.control.conditional scope: keyword.control.conditional
@ -142,8 +147,22 @@ contexts:
operand: operand:
- include: numbers - include: numbers
- include: strings - include: strings
- match: ']\d+'
scope: variable.other
#- include: macro-parm #- include: macro-parm
if-operand:
- match: \b(?i:MX)\b
scope: constant.language
- match: '(.)[,=](]\d+)'
captures:
1: string.unquoted
2: variable.other
- include: numbers
operand-hex: operand-hex:
- match: '[0-9A-Fa-f]{2}' - match: '[0-9A-Fa-f]{2}'
scope: constant.numeric.hex scope: constant.numeric.hex
@ -162,6 +181,8 @@ contexts:
- match: '[0-9A-Fa-f]{2}' - match: '[0-9A-Fa-f]{2}'
scope: constant.numeric.hex scope: constant.numeric.hex
- match: ',' - match: ','
- match: ']\d+'
scope: variable.other
- include: expect-comment - include: expect-comment
@ -220,7 +241,7 @@ contexts:
scope: invalid.illegal.expect.comment scope: invalid.illegal.expect.comment
comment: comment:
- match: ; - match: (?<=[\t ]);
push: push:
- meta_scope: comment.line - meta_scope: comment.line
- match: \n - match: \n