tbls/vim-tbls/syntax/tbls.vim

16 lines
366 B
VimL

if exists("b:current_syntax")
finish
endif
syntax match tblsComment "^#.*$"
syntax match tblsTitle "^:\+ .*$"
syntax match tblsRef "\[[^\]]*\]"
syntax region tblsTable start=":: .*" end="^$" fold transparent
highlight default link tblsComment Comment
highlight default link tblsTitle Statement
highlight default link tblsRef Type
let b:current_syntax = "tbls"