Skip to content

Commit 5cac1af

Browse files
committed
Fix highlighting of RSpec.describe
Resolves: tpope#591
1 parent 0c4f91d commit 5cac1af

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

after/syntax/ruby/rails.vim

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -163,11 +163,11 @@ if s:path =~# '/spec/.*_spec\.rb$'
163163
syn match rubyTestMacro '\v<%(let|given)!=[[:keyword:]!?:]@!'
164164
syn match rubyTestMacro '\v<subject>!=\ze%(\s*[(]|\s+[{&:]|\s+do\>)'
165165
syn match rubyTestMacro '\v<%(before|after|around|background|setup|teardown)>[!?:]@!'
166-
syn match rubyTestMacro '\v<%(context|describe|feature|shared_context|shared_examples|shared_examples_for|containedin=rubyKeywordAsMethod)>[!?:]@!'
166+
syn match rubyTestMacro '\v<%(context|describe|feature|shared_context|shared_examples|shared_examples_for)>[!?:]@!' containedin=rubyKeywordAsMethod
167167
syn match rubyTestMacro '\v<%(it|example|specify|scenario|include_examples|include_context|it_should_behave_like|it_behaves_like)>[!?:]@!'
168-
syn match rubyDebug '\v<%(fcontext|fdescribe|containedin=rubyKeywordAsMethod)>[!?:]@!'
168+
syn match rubyDebug '\v<%(fcontext|fdescribe)>[!?:]@!' containedin=rubyKeywordAsMethod
169169
syn match rubyDebug '\v<%(fit|fexample|fspecify)>[!?:]@!'
170-
syn match rubyComment '\v<%(xcontext|xdescribe|xfeature|containedin=rubyKeywordAsMethod)>[!?:]@!'
170+
syn match rubyComment '\v<%(xcontext|xdescribe|xfeature)>[!?:]@!' containedin=rubyKeywordAsMethod
171171
syn match rubyComment '\v<%(xit|xexample|xspecify|xscenario)>[!?:]@!'
172172
endif
173173
if s:path =~# '/spec/.*_spec\.rb$\|/features/step_definitions/.*\.rb$'

0 commit comments

Comments
 (0)