diff --git a/ftdetect/labashki.vim b/ftdetect/labashki.vim new file mode 100644 index 0000000..f0c5bea --- /dev/null +++ b/ftdetect/labashki.vim @@ -0,0 +1 @@ +autocmd BufRead,BufNewFile *.lb set filetype=labashki diff --git a/syntax/labashki.vim b/syntax/labashki.vim new file mode 100644 index 0000000..9988433 --- /dev/null +++ b/syntax/labashki.vim @@ -0,0 +1,17 @@ +if exists("b:current_syntax") + finish +endif + +" syntax keyword Label args +syntax match Number /[ \r\n\t\f\v\-]*\d*[ \r\n\t\f\v$]*/ +syntax match Type /|/ +syntax match Type /\// +syntax match Label /@ [0-9][^;]*$/ +syntax match String /#[a-z]* \S*/ +syntax match String /$[a-z]* .*$/ +syntax keyword lDebug dump +syntax match Comment /;.*$/ + +highlight lDebug ctermfg=red + +let b:current_syntax = "labashki"