From 2563e4eae70e737748b21a00fbaa930c70ad4ff9 Mon Sep 17 00:00:00 2001 From: gryf Date: Sun, 4 Aug 2019 19:41:55 +0200 Subject: [PATCH] Updated to KickAssembler 4.19 changes --- syntax/kickass.vim | 29 +++++++++++++++++++++++++++-- 1 file changed, 27 insertions(+), 2 deletions(-) diff --git a/syntax/kickass.vim b/syntax/kickass.vim index 50269ad..ef71e92 100644 --- a/syntax/kickass.vim +++ b/syntax/kickass.vim @@ -2,9 +2,12 @@ " Language: Assembler, KickAssembler " Maintainer: Roman 'gryf' Dobosz " Last Change: 2019-08-04 -" Version: 1.4 +" Version: 1.5 " " Changelog: +" 1.5 Updated to KickAssembler 4.19. Added *, .zp, .encoding, .errorif and +" .while directives. Added new import and preprocessor commands. +" " 1.4 Updated to KickAssembler 3.42 changes. Added abbreviations for .byte, " .word and .dword. Added getPath and getFilename kickass functions. " @@ -137,6 +140,9 @@ syn match kickAssDirective /\.\/ syn match kickAssDirective /\.\/ syn match kickAssDirective /\.\/ syn match kickAssDirective /\.\/ +syn match kickAssDirective /\.\/ +syn match kickAssDirective /^\*[^\*]/he=e-1 +syn match kickAssDirective /\.\/ " modifiers syn match kickAssDirective /\.\/ @@ -147,6 +153,17 @@ syn match kickAssDirective "\.\" syn match kickAssDirective "\.\" nextgroup=kickAssImportType skipwhite syn keyword kickAssImportType source binary c64 text contained +" preprocessor/imports +syn match kickAssInclude /#importonce\>/ +syn match kickAssInclude /#importif\>/ +syn match kickAssInclude /#import\>/ +syn match kickAssPreProc /#define\>/ +syn match kickAssPreProc /#undef\>/ +syn match kickAssPreProc /#if\>/ +syn match kickAssPreProc /#elif\>/ +syn match kickAssPreProc /#else\>/ +syn match kickAssPreProc /#endif\>/ + " console output syn match kickAssDirective "\.\" syn match kickAssDirective "\.\" @@ -162,12 +179,16 @@ syn match kickAssDirective "\.\" syn match kickAssDirective "\.\" syn match kickAssDirective "\.\" syn keyword kickAssDirective else -syn match kickAssDirective "\.\" +syn keyword kickAssDirective if +syn keyword kickAssDirective var +syn match kickAssDirective "\.\("he=e-1,hs=s+1 syn match kickAssDirective "\.\" syn match kickAssDirective "\.\" syn match kickAssDirective "\.\" syn match kickAssDirective "\.\" syn match kickAssDirective "\.\" +syn match kickAssDirective "\.\" +syn match kickAssDirective "\.\("he=e-1,hs=s+1 " special macros syn match kickAssMacroCall ":\" @@ -198,6 +219,8 @@ syn match kickAssMethod "\.\("he=e-1,hs=s+1 syn match kickAssMethod "\.\("he=e-1,hs=s+1 syn match kickAssMethod "\.\("he=e-1,hs=s+1 syn match kickAssMethod "\.\("he=e-1,hs=s+1 +syn match kickAssMethod "\.\("he=e-1,hs=s+1 +syn match kickAssMethod "\.\("he=e-1,hs=s+1 syn match kickAssFunction "\("he=e-1 syn match kickAssFunction "\("he=e-1 @@ -347,6 +370,8 @@ if !exists("did_kickasm_syntax_inits") hi def link kickAssTodo Todo hi def link kickAssImportType Operator + hi def link kickAssInclude Include + hi def link kickAssPreProc PreProc hi def link kickAssFunction Function hi def link kickAssMethod Function