mirror of
https://github.com/gryf/kickass-syntax-vim.git
synced 2026-04-24 16:41:23 +02:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| cb4627801a | |||
| 55efc1d2c4 |
+2
-2
@@ -22,7 +22,7 @@ You can also add to your vimrc file autocommand:
|
||||
|
||||
autocmd BufRead *.asm set filetype=kickass
|
||||
|
||||
From now on, all files with extension 'asm' will have brand new kickass
|
||||
From now on, all files with extension *asm* will have brand new kickass
|
||||
syntax.
|
||||
|
||||
Enjoy.
|
||||
@@ -32,4 +32,4 @@ Enjoy.
|
||||
.. _Vundle: https://github.com/gmarik/Vundle.vim
|
||||
.. _NeoBundle: https://github.com/Shougo/neobundle.vim
|
||||
.. _BitBucket: https://bitbucket.org/gryf/kickass-syntax-vim
|
||||
.. _GitHub: https://bitbucket.org/gryf/kickass-syntax-vim
|
||||
.. _GitHub: https://github.com/gryf/kickass-syntax-vim
|
||||
|
||||
+18
-3
@@ -1,10 +1,15 @@
|
||||
" Vim syntax file
|
||||
" Language: Assembler, KickAssembler
|
||||
" Maintainer: Roman 'gryf' Dobosz <gryf_esm@o2.pl>
|
||||
" Last Change: 2012-07-22
|
||||
" Version: 1.2
|
||||
" Last Change: 2019-08-04
|
||||
" Version: 1.4
|
||||
"
|
||||
" Changelog:
|
||||
" 1.4 Updated to KickAssembler 3.42 changes. Added abbreviations for .byte,
|
||||
" .word and .dword. Added getPath and getFilename kickass functions.
|
||||
"
|
||||
" 1.3 Updated to KickAssembler 3.36 changes (added addAll and uget* methods)
|
||||
"
|
||||
" 1.2 Updated to KickAssembler 3.25 changes
|
||||
"
|
||||
" 1.1 Since in assembly languages 'everything is a label' there pretty hard
|
||||
@@ -124,8 +129,11 @@ syn match kickAssImmediate "#>\d\+\>"
|
||||
syn match kickAssDirective /\.\<pc\>/
|
||||
syn match kickAssDirective /\.\<align\>/
|
||||
syn match kickAssDirective /\.\<byte\>/
|
||||
syn match kickAssDirective /\.\<by\>/
|
||||
syn match kickAssDirective /\.\<word\>/
|
||||
syn match kickAssDirective /\.\<wo\>/
|
||||
syn match kickAssDirective /\.\<dword\>/
|
||||
syn match kickAssDirective /\.\<dw\>/
|
||||
syn match kickAssDirective /\.\<text\>/
|
||||
syn match kickAssDirective /\.\<fill\>/
|
||||
syn match kickAssDirective /\.\<pseudopc\>/
|
||||
@@ -240,6 +248,7 @@ syn match kickAssMethod "\.\<remove\>("he=e-1,hs=s+1
|
||||
syn match kickAssMethod "\.\<shuffle\>("he=e-1,hs=s+1
|
||||
syn match kickAssMethod "\.\<reverse\>("he=e-1,hs=s+1
|
||||
syn match kickAssMethod "\.\<sort\>("he=e-1,hs=s+1
|
||||
syn match kickAssMethod "\.\<addAll\>("he=e-1,hs=s+1
|
||||
" READY.
|
||||
|
||||
" Hash - already defined names: get, remove
|
||||
@@ -292,6 +301,8 @@ syn keyword kickAssConstant BD_C64FILE BF_BITMAP_SINGLECOLOR BF_KOALA BF_FLI
|
||||
syn match kickAssFunction "\<LoadBinary\>("he=e-1
|
||||
syn match kickAssMethod "\.\<getSize\>("he=e-1,hs=s+1
|
||||
syn match kickAssFunction "\<LoadBinary\>("he=e-1
|
||||
syn match kickAssMethod "\.\<uget[a-zA-Z0-9]*\>("he=e-1,hs=s+1
|
||||
|
||||
|
||||
" Graphics files
|
||||
syn match kickAssFunction "\<LoadPicture\>("he=e-1
|
||||
@@ -316,6 +327,10 @@ syn match kickAssMethod "\.\<writeln\>("he=e-1,hs=s+1
|
||||
syn match kickAssDirective "\.\<kickAssert\>"
|
||||
syn match kickAssDirective "\.\<kickAsserterror\>"
|
||||
|
||||
" Misc
|
||||
syn match kickAssMethod "\<getPath\>("he=e-1,hs=s+1
|
||||
syn match kickAssMethod "\<getFilename\>("he=e-1,hs=s+1
|
||||
|
||||
if !exists("did_kickasm_syntax_inits")
|
||||
let did_kickasm_syntax_inits = 1
|
||||
|
||||
@@ -345,4 +360,4 @@ if !exists("did_kickasm_syntax_inits")
|
||||
hi def link kickAssDecNumber Number
|
||||
endif
|
||||
|
||||
let b:current_syntax = "kickasm"
|
||||
let b:current_syntax = "kickass"
|
||||
|
||||
Reference in New Issue
Block a user