From 4c96c6bc8351b8270622b2df629f14ff2123334b Mon Sep 17 00:00:00 2001 From: "matthias@arch" Date: Sat, 30 Dec 2023 20:28:20 +0100 Subject: [PATCH] fix bbs,bbr. add smb,rmb --- syntax/ca65.vim | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/syntax/ca65.vim b/syntax/ca65.vim index 0ca8f9a..3c1b2b2 100644 --- a/syntax/ca65.vim +++ b/syntax/ca65.vim @@ -48,8 +48,9 @@ endif if exists("b:ca65_65C02") || exists("b:ca65_65816") syn keyword ca65C02Opcode phx phy plx ply stz trb tsb stp wai syn match ca65C02Opcode "bb[rs][0-7]" +syn match ca65C02Opcode "[rs]mb[0-7]" syn region ca65C02BranchTarget matchgroup=ca65C02Opcode start="\(bra \)" end="$" contains=ca65Comment keepend -syn match ca65BitSetBranchTarget "\v(^(.*:)?[ \t]*)@<=(bb[rs][0-7][ \t]+[^,]+,[ \t]*)@<=[^;]+" +syn match ca65C02BitBranchTarget "\v(^(.*:)?[ \t]*bb[rs][0-7][ \t]+[^,]+,[ \t]*)@<=[^;]+" endif " ******************************************************************************** @@ -68,7 +69,7 @@ syn match ca65Label "\v^\.?[a-z_][a-z0-9_]*:" syn match ca65CheapLabel "^@[a-z_][a-z0-9_]*:" syn match ca65UnnamedLabel "^:" syn match ca65Comment ";.*" contains=ca65Todo -syn keyword ca65Todo contained todo fixme xxx warning danger note notice bug +syn keyword ca65Todo contained todo fixme warning danger note notice bug syn region ca65String start=+"+ skip=+\\"+ end=+"+ syn match ca65Char "'.'" @@ -96,7 +97,7 @@ hi link ca65UnnamedLabel ca65Label hi link ca6502BranchTarget ca65Label hi link ca65C02BranchTarget ca65Label hi link ca65816BranchTarget ca65Label -hi link ca65BitSetBranchTarget ca65Label +hi link ca65C02BitBranchTarget ca65Label hi link ca65ProcLabel ca65Label hi link ca65MacLongbranchTarget ca65Label hi link ca65MacGenericBranchTarget ca65Label