Skip to content

Commit 2c42236

Browse files
authored
Add rspec focused keywords to syntax (tpope#568)
1 parent 3cc3430 commit 2c42236

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

after/syntax/ruby/rails.vim

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ hi def link rubyUserAssertion rubyAssertion
1717
hi def link rubyAssertion rubyException
1818
hi def link rubyTestAction rubyControl
1919
hi def link rubyHelper Function
20+
hi def link rubyDebug Debug
2021

2122
let s:has_app = exists('*RailsDetect') && RailsDetect()
2223
let s:path = tr(expand('%:p'), '\', '/')
@@ -157,6 +158,8 @@ if s:path =~# '/spec/.*_spec\.rb$'
157158
syn keyword rubyTestMacro before after around background setup teardown
158159
syn keyword rubyTestMacro context describe feature shared_context shared_examples shared_examples_for containedin=rubyKeywordAsMethod
159160
syn keyword rubyTestMacro it example specify scenario include_examples include_context it_should_behave_like it_behaves_like
161+
syn keyword rubyDebug fcontext fdescribe containedin=rubyKeywordAsMethod
162+
syn keyword rubyDebug fit fexample fspecify
160163
syn keyword rubyComment xcontext xdescribe xfeature containedin=rubyKeywordAsMethod
161164
syn keyword rubyComment xit xexample xspecify xscenario
162165
endif

0 commit comments

Comments
 (0)