Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions syntax/asm_ca65.vim
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ syn match asm_ca65Op "\.NOT\>"
syn keyword asm_ca65Mnemonic
\ 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
\ PLP ROL ROR RTI RTS SBC SEC SED SEI STA STX STY TAX TAY TSX TXA TXS TYA WAI
\ PLX PHX PLY PHY STZ BRA TRB TSB BBR BBS RMB SMB STP

syn keyword asm_ca65WDC
\ BRA BRL COP DEA INA JML JSL MVN MVP PEA PEI PER PHB PHD PHK PHX PHY PLB PLD
Expand Down Expand Up @@ -116,6 +117,7 @@ syn match asm_ca65SpecialSegmentCommand "\.bss\>"
syn match asm_ca65SpecialSegmentCommand "\.data\>"
syn match asm_ca65SpecialSegmentCommand "\.rodata\>"
syn match asm_ca65SpecialSegmentCommand "\.zeropage\>"
syn match asm_ca65SpecialSegmentCommand "\.code\>"
" Includes
syn match asm_ca65Include "\.include\>"
syn match asm_ca65Include "\.incbin\>"
Expand Down Expand Up @@ -256,8 +258,8 @@ syn match asm_ca65Builtin "\.assert\>"
syn match asm_ca65Builtin "\.set\>"

" String and char literals
syn region asm_ca65String start=+"+ skip=+\\"+ end=+"+
syn region asm_ca65Char start=+'+ skip=+\\'+ end=+'+
syn region asm_ca65String start=+"+ end=+"+
syn region asm_ca65Char start=+'+ end=+'+

" Line comments
syn match asm_ca65Comment ";.*" contains=asm_ca65Todo,@Spell
Expand Down