GDScript: Fix annotation parsing adding new annotation entries

This commit is contained in:
HolonProduction
2024-10-13 19:01:30 +02:00
parent 92e51fca72
commit 140c6a612e
5 changed files with 19 additions and 7 deletions

View File

@@ -0,0 +1,3 @@
@export
func test():
pass

View File

@@ -0,0 +1,2 @@
GDTEST_PARSER_ERROR
Annotation "@export" cannot be applied to a function.

View File

@@ -0,0 +1,3 @@
@hello_world
func test():
pass

View File

@@ -0,0 +1,2 @@
GDTEST_PARSER_ERROR
Unrecognized annotation: "@hello_world".