Change $ node path shorthand regex to match only valid paths (#276)

Co-authored-by: Hugo Locurcio <hugo.locurcio@hugo.pro>
This commit is contained in:
Vlad-Zumer
2021-06-15 17:39:29 +01:00
committed by GitHub
parent 338b6ae977
commit 29f1bc0ceb
2 changed files with 12 additions and 1 deletions

View File

@@ -204,7 +204,7 @@
"name": "support.function.builtin.gdscript"
},
"builtin_get_node_shorthand": {
"match": "\\$[A-Za-z0-9\\_\\/]+",
"match": "\\$((\\\"(\\.\\.\\/)+|\\\"\\/|\\\"[0-9]+|\\\")([0-9A-Za-z\\_]+\\/)*[A-Za-z0-9\\_]+\\\"|[A-Za-z\\_]+(\\/[A-Za-z\\_]+)*)",
"name": "support.function.builtin.shorthand.gdscript"
},
"builtin_classes": {