coffeescript-support/syntax/jasmine.vim
Christopher H. Laco 760bb0eab5 Added spy/expect snippets
Added more keywords
2011-01-31 22:37:53 -05:00

23 lines
716 B
VimL

if exists("b:current_syntax")
finish
endif
runtime! syntax/javascript.vim
syn case match
syn keyword specFunctions afterEach beforeEach describe it expect addMatchers spyOn not
syn keyword specDisabled xit xdescribe
syn keyword specSpys andCallThrough andReturn andThrow andCallFake callCount argsForCall mostRecentCall
syn keyword specAsync runs waits waitsFor
syn match specMatcher "to[A-Za-z0-9_]*"
syn keyword specjQuery loadFixtures readFixtures setFixtures sandbox clearCache cleanUp
hi def link specFunctions Special
hi def link specDisabled Error
hi def link specMatcher Special
hi def link specSpys Special
hi def link specAsync Special
hi def link specjQuery Special
let b:current_syntax = "jasmine"