From 5038a336bed6ccb5901c1437494e34312cfdc4ad Mon Sep 17 00:00:00 2001 From: Danil Alexeev Date: Thu, 9 Feb 2023 18:42:22 +0300 Subject: GDScript: Fix and improve annotation parsing --- .../gdscript/tests/scripts/parser/errors/annotation_extra_comma.gd | 4 ++++ .../gdscript/tests/scripts/parser/errors/annotation_extra_comma.out | 2 ++ 2 files changed, 6 insertions(+) create mode 100644 modules/gdscript/tests/scripts/parser/errors/annotation_extra_comma.gd create mode 100644 modules/gdscript/tests/scripts/parser/errors/annotation_extra_comma.out (limited to 'modules/gdscript/tests/scripts/parser/errors') diff --git a/modules/gdscript/tests/scripts/parser/errors/annotation_extra_comma.gd b/modules/gdscript/tests/scripts/parser/errors/annotation_extra_comma.gd new file mode 100644 index 0000000000..271a831732 --- /dev/null +++ b/modules/gdscript/tests/scripts/parser/errors/annotation_extra_comma.gd @@ -0,0 +1,4 @@ +@export_enum("A",, "B", "C") var a + +func test(): + pass diff --git a/modules/gdscript/tests/scripts/parser/errors/annotation_extra_comma.out b/modules/gdscript/tests/scripts/parser/errors/annotation_extra_comma.out new file mode 100644 index 0000000000..70eee5b39f --- /dev/null +++ b/modules/gdscript/tests/scripts/parser/errors/annotation_extra_comma.out @@ -0,0 +1,2 @@ +GDTEST_PARSER_ERROR +Expected expression as the annotation argument. -- cgit v1.2.3