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

Fix word boundary regexes in Ruby grammar #2984

Merged
merged 1 commit into from
Dec 16, 2024

Conversation

vinistock
Copy link
Member

@vinistock vinistock commented Dec 13, 2024

Motivation

As pointed out in #2371 (comment), \b is indeed incorrect. All regexes inside the JSON grammar have to be escaped and so word boundary is \\b.

Implementation

Added the missing backslashes.

Copy link
Member Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

@vinistock vinistock added vscode This pull request should be included in the VS Code extension's release notes bugfix This PR will fix an existing bug labels Dec 13, 2024 — with Graphite App
@vinistock vinistock marked this pull request as ready for review December 16, 2024 16:56
@vinistock vinistock requested a review from a team as a code owner December 16, 2024 16:56
@vinistock vinistock merged commit e415bab into main Dec 16, 2024
38 checks passed
@vinistock vinistock deleted the 12-13-fix_word_boundary_regexes_in_ruby_grammar branch December 16, 2024 21:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix This PR will fix an existing bug vscode This pull request should be included in the VS Code extension's release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants