Permalink
Browse files

initial commit

  • Loading branch information...
1 parent e8e9d9d commit dbf5bfe9a2f32ea801dedb5c31c29fb12942f93e @jneen committed Oct 4, 2010
Showing with 35 additions and 0 deletions.
  1. +35 −0 syntax/eco.vim
View
@@ -0,0 +1,35 @@
+" Vim syntax file
+" Language: eco
+" Maintainer: Jay Adkisson
+
+if exists("b:current_syntax")
+ finish
+endif
+
+if !exists("main_syntax")
+ let main_syntax = 'eco'
+endif
+
+runtime! syntax/html.vim
+unlet! b:current_syntax
+
+syn include @coffeeTop syntax/coffee.vim
+
+syn cluster ecoRegions contains=ecoOneLiner,ecoBlock,ecoExpression,ecoComment
+
+syn region ecoBlock matchgroup=ecoDelimiter start=/<%/ end=/%>/ contains=@coffeeTop containedin=ALLBUT,@ecoRegions keepend
+syn region ecoExpression matchgroup=ecoDelimiter start=/<%[=\-]/ end=/%>/ contains=@coffeeTop containedin=ALLBUT,@ecoRegions keepend
+syn region ecoComment matchgroup=ecoComment start=/<%#/ end=/%>/ contains=@coffeeTodo,@Spell containedin=ALLBUT,@ecoRegions keepend
+
+" Define the default highlighting.
+
+hi def link ecoDelimiter Delimiter
+hi def link ecoComment Comment
+
+let b:current_syntax = 'eco'
+
+if main_syntax == 'eco'
+ unlet main_syntax
+endif
+
+" vim: nowrap sw=2 sts=2 ts=8:

0 comments on commit dbf5bfe

Please sign in to comment.