Skip to content

Commit 437500b

Browse files
committed
Change meta.rspec.behaviour to not include newline at EOL
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
1 parent e5159d1 commit 437500b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Syntaxes/RSpec.tmLanguage

+1-1
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@
107107
<key>comment</key>
108108
<string>Begin regexp must not match pending behaviours (see https://github.com/rspec/rspec-tmbundle/issues/31).</string>
109109
<key>end</key>
110-
<string>\b(do)\s*$</string>
110+
<string>\b(do)(?=\s*$)</string>
111111
<key>endCaptures</key>
112112
<dict>
113113
<key>1</key>

0 commit comments

Comments
 (0)