Skip to content

Commit

Permalink
Merge pull request #9 from jvortmann/jasmine.vim
Browse files Browse the repository at this point in the history
---

This commit properly detects the Spec files for *[Ss]pec.js and *[Ss]pec.coffee
  • Loading branch information
claco committed Feb 15, 2012
2 parents 829e0ed + 0903ef4 commit a9c1dd8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions ftdetect/jasmine.vim
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
autocmd BufNewFile,BufRead,BufWritePost *_[Ss]pec.js,*SpecHelper.js set filetype=jasmine.javascript syntax=jasmine
autocmd BufNewFile,BufRead,BufWritePost *_[Ss]pec.coffee,*SpecHelper.coffee set filetype=jasmine.coffee syntax=jasmine
autocmd BufNewFile,BufRead,BufWritePost *[Ss]pec.js,*SpecHelper.js set filetype=jasmine.javascript syntax=jasmine
autocmd BufNewFile,BufRead,BufWritePost *[Ss]pec.coffee,*SpecHelper.coffee set filetype=jasmine.coffee syntax=jasmine
4 changes: 1 addition & 3 deletions syntax/jasmine.vim
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@ endif

if &ft =~ "coffee"
runtime! syntax/coffee.vim
endif

if !exists("b:current_syntax")
else
runtime! syntax/javascript.vim
endif

Expand Down

0 comments on commit a9c1dd8

Please sign in to comment.