Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
r-sierra opened this issue Aug 3, 2023 · 1 comment
Open
Labels
C: Syntax T: bug A bug in an existing language feature

Comments

@r-sierra
Copy link

r-sierra commented Aug 3, 2023

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 r-sierra changed the title [Ruby] Incorrect syntax highlighting for single quote in Regexp literal [Ruby] Incorrect syntax highlighting in Regexp literal with single quote Aug 3, 2023
@deathaxe
Copy link
Collaborator

deathaxe commented Aug 3, 2023

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

@deathaxe deathaxe added T: bug A bug in an existing language feature C: Syntax labels Aug 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C: Syntax T: bug A bug in an existing language feature
Projects
None yet
Development

No branches or pull requests

2 participants