2011-01-31 03:13:44 +00:00
|
|
|
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
|
2011-02-01 03:37:53 +00:00
|
|
|
syn keyword specDisabled xit xdescribe
|
|
|
|
syn keyword specSpys andCallThrough andReturn andThrow andCallFake callCount argsForCall mostRecentCall
|
|
|
|
syn keyword specAsync runs waits waitsFor
|
2011-01-31 03:13:44 +00:00
|
|
|
syn match specMatcher "to[A-Za-z0-9_]*"
|
2011-02-01 03:37:53 +00:00
|
|
|
syn keyword specjQuery loadFixtures readFixtures setFixtures sandbox clearCache cleanUp
|
2011-01-31 03:13:44 +00:00
|
|
|
|
|
|
|
hi def link specFunctions Special
|
2011-02-01 03:37:53 +00:00
|
|
|
hi def link specDisabled Error
|
2011-01-31 03:13:44 +00:00
|
|
|
hi def link specMatcher Special
|
2011-02-01 03:37:53 +00:00
|
|
|
hi def link specSpys Special
|
|
|
|
hi def link specAsync Special
|
|
|
|
hi def link specjQuery Special
|
2011-01-31 03:13:44 +00:00
|
|
|
|
|
|
|
let b:current_syntax = "jasmine"
|