diff --git a/syntax/ats.vim b/syntax/ats.vim index 0f869fa..10727af 100644 --- a/syntax/ats.vim +++ b/syntax/ats.vim @@ -47,6 +47,16 @@ syn keyword atsBool true false syn match atsComment "\v^\/\/.*$" syn region atsNestComment start="(\*" end="\*)" contains=atsNestComment,atsTodo,@Spell +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=∨ + +syn include @c syntax/c.vim +syn region madBlock matchgroup=atsCBlock start="(%{\|%{^\|%{#" end="%}" contains=@c + +highlight link Conceal Keyword highlight link atsBool Boolean highlight link atsKeywordTwo Include highlight link atsArrow Special @@ -63,19 +73,6 @@ highlight link atsKeyword Keyword highlight link atsType Type highlight link atsIdentifier Identifier -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 - -syn include @c syntax/c.vim - -syn region madBlock matchgroup=atsCBlock start="(%{\|%{^\|%{#" end="%}" contains=@c - hi def link atsCBlock Special setlocal conceallevel=1