Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

add coffeescript highlighting support

  • Loading branch information...
commit de6d38b31e1a9c75186ad0c20172b26845a7a106 1 parent a590c07
@johnbintz johnbintz authored
Showing with 8 additions and 2 deletions.
  1. +2 −1  README.textile
  2. +1 −0  ftdetect/jasmine.vim
  3. +5 −1 syntax/jasmine.vim
View
3  README.textile
@@ -18,7 +18,8 @@ h2. What it does
This plugin is pretty basic right now. It currently:
-* Sets *Spec.js and *SpecHelper.js files to filetype=jasmine+javascript
+* Sets *Spec.js and *SpecHelper.js files to filetype=jasmine.javascript syntax=jasmine
+* Sets *Spec.coffee and *SpecHelper.coffee files to filetype=jasmine.coffee syntax=jasmine
* Applies basic syntax highlighting for jasmine keywords in addition to normal javascript syntax
* Loads snippets for the jasmine filetype for:
** desc: description block with before..it..expect
View
1  ftdetect/jasmine.vim
@@ -1 +1,2 @@
autocmd BufNewFile,BufRead,BufWritePost *Spec.js,*SpecHelper.js set filetype=jasmine.javascript syntax=jasmine
+autocmd BufNewFile,BufRead,BufWritePost *Spec.coffee,*SpecHelper.coffee set filetype=jasmine.coffee syntax=jasmine
View
6 syntax/jasmine.vim
@@ -2,7 +2,11 @@ if exists("b:current_syntax")
finish
endif
-runtime! syntax/javascript.vim
+if &ft =~ "coffee"
+ runtime! syntax/coffee.vim
+else
+ runtime! syntax/javascript.vim
+endif
syn case match
syn keyword specFunctions afterEach beforeEach describe it expect addMatchers spyOn not
Please sign in to comment.
Something went wrong with that request. Please try again.