mirror of https://git.cro.wtf/kip.git
add vim syntax highlighter
This commit is contained in:
parent
29c53ab0da
commit
b234d213eb
|
@ -0,0 +1 @@
|
|||
au BufRead,BufNewFile *.x20 setfiletype x20
|
|
@ -0,0 +1,8 @@
|
|||
if exists("b:did_ftplugin")
|
||||
finish
|
||||
endif
|
||||
|
||||
setlocal commentstring={%s}
|
||||
setlocal matchpairs={:},::;,!:;
|
||||
|
||||
let b:did_ftplugin = 1
|
|
@ -0,0 +1,15 @@
|
|||
syn match x20com "{.*}"
|
||||
syn match x20fun "-\S*"
|
||||
syn match x20num "#\S*\|@\S*"
|
||||
syn match x20pun ":\S*\|!\S*\|;"
|
||||
|
||||
syn region x20str matchgroup=x20str start=/"/ end=/"/
|
||||
syn sync fromstart
|
||||
|
||||
hi link x20com comment
|
||||
hi link x20fun type
|
||||
hi link x20num number
|
||||
hi link x20pun delimiter
|
||||
hi link x20str string
|
||||
|
||||
let b:current_syntax='x20'
|
Loading…
Reference in New Issue