package publish
This commit is contained in:
parent
f6b169b48a
commit
3b5b19afbf
2 changed files with 7 additions and 7 deletions
|
@ -1,5 +1,7 @@
|
||||||
# ats-vim
|
# ats-vim
|
||||||
|
|
||||||
|
[](https://travis-ci.org/vmchale/ats-vim)
|
||||||
|
|
||||||
This provides detection and syntax highlighting for ATS programs.
|
This provides detection and syntax highlighting for ATS programs.
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
|
@ -1,7 +1,5 @@
|
||||||
if !exists("main_syntax")
|
if !exists('main_syntax')
|
||||||
if version < 600
|
if exists('b:current_syntax')
|
||||||
syntax clear
|
|
||||||
elseif exists("b:current_syntax")
|
|
||||||
finish
|
finish
|
||||||
endif
|
endif
|
||||||
let main_syntax = 'ats'
|
let main_syntax = 'ats'
|
||||||
|
@ -57,7 +55,7 @@ syn match atsIdent "[A-Za-z_][0-9A-Za-z_\']*"
|
||||||
|
|
||||||
" embedded C
|
" embedded C
|
||||||
" %{^ %} %{ %} %{$ %} %{# %}
|
" %{^ %} %{ %} %{$ %} %{# %}
|
||||||
if main_syntax != 'c' || exists('c')
|
if main_syntax !=# 'c' || exists('c')
|
||||||
syn include @atsC syntax/c.vim
|
syn include @atsC syntax/c.vim
|
||||||
unlet b:current_syntax
|
unlet b:current_syntax
|
||||||
syn region embC start=+%{[^#$]\=+ keepend end=+%}+ contains=@atsC
|
syn region embC start=+%{[^#$]\=+ keepend end=+%}+ contains=@atsC
|
||||||
|
@ -160,9 +158,9 @@ AtsHiLink atsAllErrs Error
|
||||||
|
|
||||||
delcommand AtsHiLink
|
delcommand AtsHiLink
|
||||||
|
|
||||||
let b:current_syntax = "ats"
|
let b:current_syntax = 'ats'
|
||||||
|
|
||||||
if main_syntax == "ats"
|
if main_syntax ==# 'ats'
|
||||||
unlet main_syntax
|
unlet main_syntax
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue