+vim highlighting

This commit is contained in:
anon 2024-09-14 02:57:13 +02:00
parent c4da009b54
commit 89dc8c37f9
2 changed files with 17 additions and 0 deletions

1
.vim/ftdetect/tbsp.vim Normal file
View File

@ -0,0 +1 @@
autocmd BufNewFile,BufRead *.tbsp set filetype=tbsp

16
.vim/syntax/tbsp.vim Normal file
View File

@ -0,0 +1,16 @@
runtime! syntax/c.vim
unlet b:current_syntax
syn keyword tbspDirection enter leave
syn match tbspTop "%top"
syn match tbspLanaguage "%language"
syn match tbspSeparator "%%"
hi link tbspDirection Type
hi link tbspTop Statement
hi link tbspLanaguage Statement
hi link tbspSeparator Todo
syn include syntax/c.vim
let b:current = "tbsp"