mirror of
https://github.com/godotengine/godot-vscode-plugin.git
synced 2026-01-04 10:09:58 +03:00
Fix some $ node path shorthand regex bugs in syntax highlighting (#340)
This commit is contained in:
@@ -212,7 +212,7 @@
|
||||
"name": "support.function.builtin.gdscript"
|
||||
},
|
||||
"builtin_get_node_shorthand": {
|
||||
"match": "\\$((\\\"(\\.\\.\\/)+|\\\"\\/|\\\"[0-9]+|\\\")([0-9A-Za-z\\_]+\\/)*[A-Za-z0-9\\_]+\\\"|[A-Za-z\\_]+(\\/[A-Za-z\\_]+)*)",
|
||||
"match": "\\$(((?<quote>\"|')((\\.\\.\\/)+|\\/)?)[0-9A-Za-z_ ]+(\\/[0-9A-Za-z_ ]+)*\\k<quote>|[0-9A-Za-z_]+(\\/[0-9A-Za-z_]+)*)",
|
||||
"name": "support.function.builtin.shorthand.gdscript"
|
||||
},
|
||||
"builtin_classes": {
|
||||
|
||||
Reference in New Issue
Block a user