diff --git a/Syntaxes/RSpec.tmLanguage b/Syntaxes/RSpec.tmLanguage index 1c417630e..76eea3776 100644 --- a/Syntaxes/RSpec.tmLanguage +++ b/Syntaxes/RSpec.tmLanguage @@ -107,7 +107,7 @@ comment Begin regexp must not match pending behaviours (see https://github.com/rspec/rspec-tmbundle/issues/31). end - \b(do)\s*$ + \b(do)(?=\s*$) endCaptures 1