-
-
Notifications
You must be signed in to change notification settings - Fork 151
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
"patterns"
array does not work with "match"
TextMate
#542
Comments
Good catch, thank you.
How do you know that? I've been looking for resources on TextMate best practices for a while, but there isn't much content in this area. |
Holy shit, you're the
Fantastic, thank you! Those are going in my list right away. I was already planning to do some performance testing soon[0], so this is really useful stuff. [0] I'm building a code formatter for GDScript using the tm grammar and |
Godot version
NA
VS Code version
1.84.2
Godot Tools VS Code extension version
1.3.1
System information
Windows 11
Issue description
"patterns"
does not work with"match"
escape characters will not get tokenized
did you mean to use
begin
/end
instead?godot-vscode-plugin/syntaxes/GDResource.tmLanguage.json
Lines 201 to 214 in f65033c
I don't recommend putting the string contents in a capture group and using
"patterns"
inside"captures"
as that incurs a medium performance hit in VSCode TextMate
EDIT:
"name"
inside"captures"
is fineIf Godot shouldn't support escape characters inside a string
then the
"patterns"
array can be safely removedSteps to reproduce
Create a string with escape characters inside it
\\
[ "string\\bar" ]
The text was updated successfully, but these errors were encountered: