2015-07-18 17:05:45 -04:00
|
|
|
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'emberscript') == -1
|
|
|
|
|
2014-04-14 19:14:47 -04:00
|
|
|
" Language: ember-script
|
2016-07-05 03:53:49 -04:00
|
|
|
" Maintainer: Yulij Andreevich Lesov <yalesov@gmail.com>>
|
|
|
|
" URL: http://github.com/yalesov/vim-ember-script
|
|
|
|
" Version: 1.0.3
|
|
|
|
" Last Change: 2016 Jul 5
|
2014-04-14 19:14:47 -04:00
|
|
|
" License: GPL-3.0
|
|
|
|
|
|
|
|
if exists('b:current_syntax') && b:current_syntax == 'ember-script'
|
|
|
|
finish
|
|
|
|
endif
|
|
|
|
|
|
|
|
runtime! syntax/coffee.vim
|
|
|
|
unlet b:current_syntax
|
|
|
|
|
|
|
|
" mixin and with
|
|
|
|
syn match emKeyword /\vmixin|with/ display
|
|
|
|
hi def link emKeyword Keyword
|
|
|
|
|
|
|
|
" annotations
|
|
|
|
syn match emAnnotation /\v\+(computed|observer|volatile)/ display
|
|
|
|
hi def link emAnnotation Define
|
|
|
|
|
|
|
|
" ~> and *. operators
|
|
|
|
syn match emOperator /\v\~\>|\*\./ display
|
|
|
|
hi def link emOperator Operator
|
|
|
|
|
|
|
|
" @each is special
|
|
|
|
syn match emEach /\v\@each/ display
|
|
|
|
hi def link emEach Special
|
|
|
|
|
|
|
|
let b:current_syntax = 'ember-script'
|
2015-07-18 17:05:45 -04:00
|
|
|
|
|
|
|
endif
|