-
Notifications
You must be signed in to change notification settings - Fork 108
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
Subroutines breaking capture tokenizing inside of referenced capture group #164
Comments
jtbandes
added a commit
to jtbandes/swift-tmlanguage
that referenced
this issue
Nov 5, 2023
Workaround for microsoft/vscode-textmate#164 and similar issues
RedCMD
referenced
this issue
in RedCMD/TmLanguage-Syntax-Highlighter
Nov 19, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When trying to call a subroutine on a capture group via
\\g<1>
.The call will remove all the previous tokens from capture groups that aren't rechecked in the subroutine.
Create a syntax highlighting extension with this code
Expected outcome is that it will highlight all text in the format
[abcd]-[abcd]
Like so:
But instead all tokens connected to capture groups that don't get rematched against (and fail) in the subroutine call get purged.
(capture groups 2 to 5)
The text was updated successfully, but these errors were encountered: