ats-vim/after/syntax/ats.vim
2018-02-26 17:27:42 -06:00

26 lines
629 B
VimL
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

scriptencoding utf-8
syntax match logicalAnd '&&' conceal cchar=
syntax match leq '<=' conceal cchar=
syntax match geq '>=' conceal cchar=
syntax match neq '!=' conceal cchar=
syntax match logicalOr '||' conceal cchar=
" FIXME boring white?
hi! link Conceal Keyword
" store and remove current syntax value
let old_syntax = b:current_syntax
unlet b:current_syntax
syn include @c syntax/c.vim
unlet b:current_syntax
syn region madBlock matchgroup=atsCBlock start="%{" end="%}" contains=@c
hi def link atsCBlock Special
" restore current syntax value
let b:current_syntax = old_syntax
setlocal conceallevel=1