You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am writing a extension for language syntax highlighting, and I would like to use non fixed-length lookbehind regex like (?<=void[ \t]+)\w+ to highlight function name, but it does not work. However, fixed-length lookbehind works. Is there any way to fix this, or any workarounds? Thx.
The text was updated successfully, but these errors were encountered:
bpasero
transferred this issue from microsoft/vscode-extension-vscode
Jul 3, 2019
TextMate Grammars use Oniguruma as RegExp engine. The spec there says:
Subexp of look-behind must be fixed character length.
But different character length is allowed in top level
alternatives only.
ex. (?<=a|bc) is OK. (?<=aaa(?:b|cd)) is not allowed.
I am writing a extension for language syntax highlighting, and I would like to use non fixed-length lookbehind regex like
(?<=void[ \t]+)\w+
to highlight function name, but it does not work. However, fixed-length lookbehind works. Is there any way to fix this, or any workarounds? Thx.The text was updated successfully, but these errors were encountered: