diff --git a/.vim/ftdetect/tbsp.vim b/.vim/ftdetect/tbsp.vim new file mode 100644 index 0000000..3a93112 --- /dev/null +++ b/.vim/ftdetect/tbsp.vim @@ -0,0 +1 @@ +autocmd BufNewFile,BufRead *.tbsp set filetype=tbsp diff --git a/.vim/syntax/tbsp.vim b/.vim/syntax/tbsp.vim new file mode 100644 index 0000000..c6ce410 --- /dev/null +++ b/.vim/syntax/tbsp.vim @@ -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"