From 89dc8c37f93a62939c6d9ca4e4f852f79c24a2d1 Mon Sep 17 00:00:00 2001 From: anon <anon@anon.anon> Date: Sat, 14 Sep 2024 02:57:13 +0200 Subject: [PATCH] +vim highlighting --- .vim/ftdetect/tbsp.vim | 1 + .vim/syntax/tbsp.vim | 16 ++++++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 .vim/ftdetect/tbsp.vim create mode 100644 .vim/syntax/tbsp.vim 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"