Packages icon indicating copy to clipboard operation
Packages copied to clipboard

[Ruby] Incorrect syntax highlighting in Regexp literal with single quote

Open r-sierra opened this issue 1 year ago • 1 comments

What happened?

If a single quote (') is placed inside a Regexp literal expression the code afterwards is highlighted as text

let(:error_msg) { /can't be blank/ }

before do
  record.repository_owner = nil
  record.repository_name = nil
end

Captura desde 2023-08-03 12-30-21

Sublime Version: 4152 OS Version: Linux fedora 6.4.4-100.fc37.x86_64

r-sierra avatar Aug 03 '23 15:08 r-sierra

The whole pattern is not scoped as such, nor is the whole let(...) statement.

deathaxe avatar Aug 03 '23 15:08 deathaxe