Compare commits
2 Commits
master
...
coffeescri
Author | SHA1 | Date | |
---|---|---|---|
|
1f9d76ab6a | ||
|
de6d38b31e |
@ -18,7 +18,8 @@ h2. What it does
|
|||||||
|
|
||||||
This plugin is pretty basic right now. It currently:
|
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
|
* Applies basic syntax highlighting for jasmine keywords in addition to normal javascript syntax
|
||||||
* Loads snippets for the jasmine filetype for:
|
* Loads snippets for the jasmine filetype for:
|
||||||
** desc: description block with before..it..expect
|
** desc: description block with before..it..expect
|
||||||
|
@ -1 +1,2 @@
|
|||||||
autocmd BufNewFile,BufRead,BufWritePost *Spec.js,*SpecHelper.js set filetype=jasmine.javascript syntax=jasmine
|
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
|
||||||
|
@ -2,10 +2,16 @@ if exists("b:current_syntax")
|
|||||||
finish
|
finish
|
||||||
endif
|
endif
|
||||||
|
|
||||||
runtime! syntax/javascript.vim
|
if &ft =~ "coffee"
|
||||||
|
runtime! syntax/coffee.vim
|
||||||
|
endif
|
||||||
|
|
||||||
|
if !exists("b:current_syntax")
|
||||||
|
runtime! syntax/javascript.vim
|
||||||
|
endif
|
||||||
|
|
||||||
syn case match
|
syn case match
|
||||||
syn keyword specFunctions afterEach beforeEach describe it expect addMatchers spyOn not
|
syn keyword specFunctions afterEach beforeEach describe it expect addMatchers spyOn not context
|
||||||
syn keyword specDisabled xit xdescribe
|
syn keyword specDisabled xit xdescribe
|
||||||
syn keyword specSpys andCallThrough andReturn andThrow andCallFake callCount argsForCall mostRecentCall
|
syn keyword specSpys andCallThrough andReturn andThrow andCallFake callCount argsForCall mostRecentCall
|
||||||
syn keyword specAsync runs waits waitsFor
|
syn keyword specAsync runs waits waitsFor
|
||||||
|
Loading…
Reference in New Issue
Block a user