-
Notifications
You must be signed in to change notification settings - Fork 36
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
Allow spaces in null conditional classification #216
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @am11!
Unless I'm missing something, this change is going to break VSCode once it lands in a release there. The Lightshow demo you showed uses PCRE for its regular expressions, which permits non-fixed-sized lookbehind expressions. https://github.com/kkos/oniguruma/blob/86bbff83f1d66ed76dce26fa47db2542debbb746/doc/RE#L549-L550 |
@Gerrit0, interesting, that was certainly not my intention. Thanks for bringing it up! but first was it "all wrong"? Lets see..
Given the above, we should use subset of features supported by both PCRE and Oniguruma. Ideally there should be PR validation to catch it.. otherwise it is gonna be a never ending chase.
btw, is it going to or is this example really broken in VSCode vNext? |
The latest insiders build I was able to get was: Version: 1.61.0-insider (user setup) This was supposedly made 2 days ago, and this change merged in 5 days ago with microsoft/vscode@bd24934, I don't actually do much C#, ran into this because Shiki's auto update script broke because of this change. This could be because Onigasm (a WebAssembly port of Oniguruma) doesn't support non-fixed lookbehinds, but which looking for the spec, I found the page that I linked before, which made it seem like this was not supported, not a bug in Onigasm. |
Your screenshot is showing it has fixed the issue described in #207, i.e. Then it seems to be a limitation in Onigasm which neither VSCode nor linguist are using. |
Should be fixed by #220. |
3 months later... Yep. I missed something. Variable length look behind is allowed by a more recent version of Oniguruma. Shiki is still using a random commit from 2018 which doesn't support it, while VSCode (at least today, and I think possibly 3 months ago too) is using a release from 2020. So... if the original code was better, the reason I complained in the first place has gone away :) |
Before (
3237bab
) vs. After (c724205
).Fixes #207