Merge pull request #2 from MattTuttle/master

Fixed label highlighting and added a few things (CA65)
This commit is contained in:
Matthew Callis 2016-05-18 14:03:06 -07:00
commit c02de139a1

View File

@ -1,6 +1,6 @@
'fileTypes': [] 'fileTypes': [
'foldingStartMarker': '/\\*\\*|\\{\\s*$' 's'
'foldingStopMarker': '\\*\\*/|^\\s*\\}' ]
'name': '6502 Assembly (cc65)' 'name': '6502 Assembly (cc65)'
'patterns': [ 'patterns': [
{ {
@ -19,11 +19,7 @@
'include': '#M65816_alias' 'include': '#M65816_alias'
} }
{ {
'begin': '(;)' 'match': ';.*$'
'beginCaptures':
'1':
'name': 'punctuation.definition.comment'
'end': '\\n'
'name': 'comment.line.semicolon' 'name': 'comment.line.semicolon'
} }
{ {
@ -37,6 +33,10 @@
'name': 'punctuation.definition.string.end' 'name': 'punctuation.definition.string.end'
'name': 'string.quoted.double.assembly' 'name': 'string.quoted.double.assembly'
} }
{
'match': '\\#(\'.\'|[^\\s\']+)'
'name': 'constant.numeric.hex'
}
{ {
'match': '\\$[A-Fa-f0-9]+' 'match': '\\$[A-Fa-f0-9]+'
'name': 'constant.numeric.hex' 'name': 'constant.numeric.hex'
@ -54,7 +54,7 @@
'name': 'constant.numeric.decimal' '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' 'name': 'variable.other.readwrite.assembly' # 'entity.name.label'
} }
{ {