ats-vim/syntax/ats.vim

27 lines
626 B
VimL
Raw Normal View History

2017-11-05 11:41:12 -05:00
if !exists('main_syntax')
if exists('b:current_syntax')
2009-06-26 20:00:00 -04:00
finish
endif
let main_syntax = 'ats'
endif
2018-02-26 18:11:07 -05:00
syn keyword atsTodo TODO FIXME contained
syn match atsComment "\v\/\/.*$"
syn region atsNestComment start="(\*" end="\*)" contains=atsNestComment,atsTodo,@Spell
2009-06-26 20:00:00 -04:00
2018-02-26 18:11:07 -05:00
syn keyword atsKeyword staload overload with fun
2009-06-26 20:00:00 -04:00
2018-02-26 18:11:07 -05:00
syn keyword atsType void bool string char int uint charNZ strnptr Strptr0 Strptr1
2009-06-26 20:00:00 -04:00
2018-02-26 18:11:07 -05:00
highlight link atsComment Comment
highlight link atsNestComment Comment
highlight link atsKeyword Keyword
highlight link atsType Type
2009-06-26 20:00:00 -04:00
2017-11-05 11:41:12 -05:00
let b:current_syntax = 'ats'
2009-06-26 20:00:00 -04:00
2017-11-05 11:41:12 -05:00
if main_syntax ==# 'ats'
2009-06-26 20:00:00 -04:00
unlet main_syntax
endif