Skip to content

Commit

Permalink
Change meta.rspec.behaviour to not include newline at EOL
Browse files Browse the repository at this point in the history
If the newline character is included, the scope actually extends to the beginning of the next line. And if the next line then also contains a (nested) meta.rspec.behaviour scope, the two scopes will get merged and the symbol list becomes messed up.

Fixes #112
  • Loading branch information
noniq committed Apr 6, 2019
1 parent e5159d1 commit 437500b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Syntaxes/RSpec.tmLanguage
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@
<key>comment</key>
<string>Begin regexp must not match pending behaviours (see https://github.com/rspec/rspec-tmbundle/issues/31).</string>
<key>end</key>
<string>\b(do)\s*$</string>
<string>\b(do)(?=\s*$)</string>
<key>endCaptures</key>
<dict>
<key>1</key>
Expand Down

0 comments on commit 437500b

Please sign in to comment.