mirror of
https://github.com/ksherlock/65816.tmbundle.git
synced 2025-02-18 05:30:36 +00:00
cleanup macross
This commit is contained in:
parent
c1f98ac149
commit
8c301444cc
@ -10,10 +10,10 @@ variables:
|
|||||||
ident: '[A-Za-z_][A-Za-z_0-9]*'
|
ident: '[A-Za-z_][A-Za-z_0-9]*'
|
||||||
|
|
||||||
contexts:
|
contexts:
|
||||||
|
prototype:
|
||||||
|
- include: comments
|
||||||
main:
|
main:
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
- match: '\b(?i:include)\b'
|
- match: '\b(?i:include)\b'
|
||||||
scope: keyword.control.import
|
scope: keyword.control.import
|
||||||
|
|
||||||
@ -51,7 +51,6 @@ contexts:
|
|||||||
# - match: \n
|
# - match: \n
|
||||||
# scope: invalid.illegal
|
# scope: invalid.illegal
|
||||||
# pop: true
|
# pop: true
|
||||||
- include: comments
|
|
||||||
- match: '{{ident}}'
|
- match: '{{ident}}'
|
||||||
scope: entitity.name.struct
|
scope: entitity.name.struct
|
||||||
pop: true
|
pop: true
|
||||||
@ -64,7 +63,6 @@ contexts:
|
|||||||
# - match: \n
|
# - match: \n
|
||||||
# scope: invalid.illegal
|
# scope: invalid.illegal
|
||||||
# pop: true
|
# pop: true
|
||||||
- include: comments
|
|
||||||
- match: '\b(?i:while|until)\b'
|
- match: '\b(?i:while|until)\b'
|
||||||
scope: keyword.control.import
|
scope: keyword.control.import
|
||||||
pop: true
|
pop: true
|
||||||
@ -85,10 +83,9 @@ contexts:
|
|||||||
|
|
||||||
|
|
||||||
block-content:
|
block-content:
|
||||||
- include: comments
|
|
||||||
- include: string
|
- include: string
|
||||||
- include: mnemonics-6502
|
- include: scope:source.asm.65816#mnemonics-6502
|
||||||
- include: mnemonics-65c02
|
- include: scope:source.asm.65816#mnemonics-65c02
|
||||||
- include: numbers
|
- include: numbers
|
||||||
|
|
||||||
- match: '({{ident}}):'
|
- match: '({{ident}}):'
|
||||||
@ -134,6 +131,7 @@ contexts:
|
|||||||
- match: '"'
|
- match: '"'
|
||||||
scope: string
|
scope: string
|
||||||
push:
|
push:
|
||||||
|
- meta_include_prototype: false
|
||||||
- meta_scope: string
|
- meta_scope: string
|
||||||
- match: '\n'
|
- match: '\n'
|
||||||
pop: true
|
pop: true
|
||||||
@ -155,14 +153,6 @@ contexts:
|
|||||||
- match: '\*/'
|
- match: '\*/'
|
||||||
pop: true
|
pop: true
|
||||||
|
|
||||||
mnemonics-6502:
|
|
||||||
- match: \b(?i:ADC|AND|ASL|BCC|BCS|BEQ|BIT|BMI|BNE|BPL|BRK|BVC|BVS|CLC|CLD|CLI|CLV|CMP|CPX|CPY|DEC|DEX|DEY|EOR|INC|INX|INY|JMP|JSR|LDA|LDX|LDY|LSR|NOP|ORA|PHA|PHP|PLA|PLP|ROL|ROR|RTI|RTS|SBC|SEC|SED|SEI|STA|STX|STY|TAX|TAY|TSX|TXA|TXS|TYA)\b
|
|
||||||
scope: keyword.mnemonic.6502
|
|
||||||
|
|
||||||
mnemonics-65c02:
|
|
||||||
- match: \b(?i:BRA|PHX|PHY|PLX|PLY|STP|STZ|TRB|TSB|WAI)\b
|
|
||||||
scope: keyword.mnemonic.65c02
|
|
||||||
|
|
||||||
numbers:
|
numbers:
|
||||||
- match: 0[0-7]+
|
- match: 0[0-7]+
|
||||||
scope: constant.numeric.octal
|
scope: constant.numeric.octal
|
||||||
|
Loading…
x
Reference in New Issue
Block a user