summaryrefslogtreecommitdiffstats
path: root/syntax/ember-script.vim
diff options
context:
space:
mode:
Diffstat (limited to 'syntax/ember-script.vim')
-rw-r--r--syntax/ember-script.vim31
1 files changed, 31 insertions, 0 deletions
diff --git a/syntax/ember-script.vim b/syntax/ember-script.vim
new file mode 100644
index 00000000..1ede9d8e
--- /dev/null
+++ b/syntax/ember-script.vim
@@ -0,0 +1,31 @@
+" Language: ember-script
+" Maintainer: heartsentwined <heartsentwined@cogito-lab.com>
+" URL: http://github.com/heartsentwined/vim-ember-script
+" Version: 1.0.1
+" Last Change: 2013 Apr 17
+" 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'