File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,10 @@ scope: source.ruby.rspec
99
1010extends : Packages/Ruby/Ruby.sublime-syntax
1111
12+ variables :
13+ # Updated list as of rspec-expectations@3.13.5
14+ matchers : (?:contain|include|be)_?[^\s\(]*|eql?|(?:have|yield)_[^\s\(]*|raise_error|render_template|redirect_to|match_array|send_email|change|match|start_with|end_with|respond_to|exist|throw_symbol|cover|satisfy|output
15+
1216contexts :
1317 main :
1418 - match : ' (?<!\.)\b(before|after|around|shared_examples|shared_context|it_behaves_like|include_examples|it_should_behave_like|it_has_behavior)\b(?![?!])'
@@ -56,7 +60,7 @@ contexts:
5660 - include : expressions
5761
5862 expectation :
59- - match : ' \.(to|not_to)\s*((contain|include|be)_?[^\s\(]*|eql?|have_[^\s\(]*|raise_error|render_template|redirect_to|match_array|send_email )'
63+ - match : ' \.(to|not_to)\s*({{matchers}} )'
6064 captures :
6165 1 : keyword.other.rspec.expectation
6266 2 : keyword.other.rspec.expectation
You can’t perform that action at this time.
0 commit comments