From 5a713ff27303328e38bce2ecec51199ed867acb8 Mon Sep 17 00:00:00 2001 From: MattTuttle Date: Tue, 17 May 2016 09:43:25 -0500 Subject: [PATCH] Improving constant numeric values and fixed label highlighting --- grammars/6502 Assembly (cc65).cson | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/grammars/6502 Assembly (cc65).cson b/grammars/6502 Assembly (cc65).cson index 2cddee9..fdff2b9 100644 --- a/grammars/6502 Assembly (cc65).cson +++ b/grammars/6502 Assembly (cc65).cson @@ -1,6 +1,6 @@ -'fileTypes': [] -'foldingStartMarker': '/\\*\\*|\\{\\s*$' -'foldingStopMarker': '\\*\\*/|^\\s*\\}' +'fileTypes': [ + 's' +] 'name': '6502 Assembly (cc65)' 'patterns': [ { @@ -19,11 +19,7 @@ 'include': '#M65816_alias' } { - 'begin': '(;)' - 'beginCaptures': - '1': - 'name': 'punctuation.definition.comment' - 'end': '\\n' + 'match': ';.*$' 'name': 'comment.line.semicolon' } { @@ -37,6 +33,10 @@ 'name': 'punctuation.definition.string.end' 'name': 'string.quoted.double.assembly' } + { + 'match': '\\#(\'.\'|[^\\s\']+)' + 'name': 'constant.numeric.hex' + } { 'match': '\\$[A-Fa-f0-9]+' 'name': 'constant.numeric.hex' @@ -54,7 +54,7 @@ 'name': 'constant.numeric.decimal' } { - 'match': '^[A-Za-z_][A-Za-z0-9_]:*' + 'match': '^[A-Za-z_][A-Za-z0-9_]*:' 'name': 'variable.other.readwrite.assembly' # 'entity.name.label' } {