We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When using backreferences across begin-end/while rules a bunch of regex characters get escaped in the process
begin
end
while
The escape characters differ between VSCode TextMate and the official TextMate 2.0
TextMate 2.0 escapes: https://github.com/textmate/textmate/blob/master/Frameworks/parse/src/parse.cc#L120 \|([{}]).?*+^$ VSCode TextMate escapes: https://github.com/microsoft/vscode-textmate/blob/main/src/utils.ts#L160 \|([{}]).?*+^$-,# \t\n
\|([{}]).?*+^$
\|([{}]).?*+^$-,# \t\n
"begin": "^(.+)$", "end": "[\\1]+", "name": "string"
That grammar will match differently between VSCode and TextMate2.0 on the file:
a-z bcd a-z hij
VSCode:
TextMate2.0:
The text was updated successfully, but these errors were encountered:
No branches or pull requests
When using backreferences across
begin
-end
/while
rulesa bunch of regex characters get escaped in the process
The escape characters differ between VSCode TextMate and the official TextMate 2.0
TextMate 2.0 escapes: https://github.com/textmate/textmate/blob/master/Frameworks/parse/src/parse.cc#L120
\|([{}]).?*+^$
VSCode TextMate escapes: https://github.com/microsoft/vscode-textmate/blob/main/src/utils.ts#L160
\|([{}]).?*+^$-,# \t\n
That grammar will match differently between VSCode and TextMate2.0 on the file:
VSCode:
TextMate2.0:
The text was updated successfully, but these errors were encountered: