mirror of
https://github.com/MatthewCallis/language-65asm.git
synced 2024-11-25 07:32:18 +00:00
Restore old DASM file
This commit is contained in:
parent
f647fd3549
commit
8f9dc0f832
65
grammars/6502 Assembly (DASM).cson
Normal file
65
grammars/6502 Assembly (DASM).cson
Normal file
@ -0,0 +1,65 @@
|
||||
'fileTypes': []
|
||||
'foldingStartMarker': '/\\*\\*|\\{\\s*$'
|
||||
'foldingStopMarker': '\\*\\*/|^\\s*\\}'
|
||||
'name': '6502 Assembly (DASM)'
|
||||
'patterns': [
|
||||
{
|
||||
'match': '\\b(adc|and|asl|bit|clc|cld|cli|clv|cmp|cpx|cpy|dec|dex|dey|eor|inc|inx|iny|lda|ldx|ldy|lsr|nop|ora|pha|php|pla|plp|rol|ror|sbc|sec|sed|sei|sta|stx|sty|tax|txa|tay|tya|tsx|txs)\\b'
|
||||
'name': 'keyword'
|
||||
}
|
||||
{
|
||||
'match': '\\b(bcc|bcs|beq|bmi|bne|bpl|brk|bvc|bvs|jmp|jsr|rti|rts)\\b'
|
||||
'name': 'keyword.control'
|
||||
}
|
||||
{
|
||||
'captures':
|
||||
'1':
|
||||
'name': 'punctuation.definition.comment'
|
||||
'match': '(;).*$\\n?'
|
||||
'name': 'comment.line.semicolon'
|
||||
}
|
||||
{
|
||||
'match': '\\b(SET|WORD|BYTE|HEX)\\b'
|
||||
'name': 'storage.type'
|
||||
}
|
||||
{
|
||||
'match': '\\b(ALIGN)\\b'
|
||||
'name': 'storage.modifier'
|
||||
}
|
||||
{
|
||||
'match': '\\b(REPEAT|REPEND|MAC|ENDM|SUBROUTINE)\\b'
|
||||
'name': 'support.function'
|
||||
}
|
||||
{
|
||||
'match': '\\b(processor|org)\\b'
|
||||
'name': 'constant.language'
|
||||
}
|
||||
{
|
||||
'begin': '"'
|
||||
'end': '"'
|
||||
'name': 'string.quoted.double.untitled'
|
||||
'patterns': [
|
||||
{
|
||||
'match': '\\\\.'
|
||||
'name': 'constant.character.escape.untitled'
|
||||
}
|
||||
]
|
||||
}
|
||||
{
|
||||
'match': '^[A-Za-z_][A-Za-z0-9_]*'
|
||||
'name': 'entity.name.label'
|
||||
}
|
||||
{
|
||||
'match': '^\\.[A-Za-z_][A-Za-z0-9_]*'
|
||||
'name': 'entity.name.label.local'
|
||||
}
|
||||
{
|
||||
'match': '#?\\$[0-9a-fA-F]+'
|
||||
'name': 'constant.numeric.hex'
|
||||
}
|
||||
{
|
||||
'match': '{[0-9]+}'
|
||||
'name': 'variable.parameter.macro'
|
||||
}
|
||||
]
|
||||
'scopeName': 'source.assembly.6502.dasm'
|
Loading…
Reference in New Issue
Block a user