-
Notifications
You must be signed in to change notification settings - Fork 60
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
[Bug]: Invalid regex in Ada TextMate grammar #1229
Comments
Hello @slevithan , Thank you for reporting this issue and submitting a fix. I'm not sure we will be able to authorize the change right now because most of the team is away for the end of year holidays and my account doesn't have authorization to validate PRs. But I'll ping some people and see what can be done :) Note that this syntax file |
It would of course be great to get this fix landed sooner than later, so thank you for checking! And thanks for the pointer. I just checked, and |
(no-issue-check) GitHub issue: #1229
thanks for the fix |
(no-issue-check) GitHub issue: AdaCore#1229
Environment
Bug Summary and Reproducer
Bug Summary:
This line is an invalid regex pattern (
"(?=(;|\\))"
), since it contains an unclosed group. It should include a third)
at the end, since the second-last closing paren is escaped and matches a literal)
.(Note that the correctly-closed version of this pattern (
"(?=(;|\\)))"
) appears four other times in the same file. It is only this one instance that is missing the final closing paren.)The result of this bug is that the pattern is an invalid Oniguruma regex, and it fails silently in
vscode-textmate
. It also causes the Ada grammar to error when using Shiki's JavaScript engine, since by default its JS engine doesn't silence regex errors.Configuration and Logs
Other VS Code Extensions
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: