Fix some $ node path shorthand regex bugs in syntax highlighting (#340)

This commit is contained in:
Adam Chyb
2022-04-06 00:57:49 +10:00
committed by GitHub
parent 281c78f133
commit 854ec42027

View File

@@ -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": {