From 1a15a3adf6393f70dba41cc6dd4375656b8f0504 Mon Sep 17 00:00:00 2001 From: Pawel Lampe Date: Sun, 21 Nov 2021 21:17:35 +0100 Subject: Fix GDScript parser crash on 'dollar mixed with assignment' expression fixes #53696 --- .../gdscript/tests/scripts/parser/errors/dollar-assignment-bug-53696.gd | 2 ++ .../tests/scripts/parser/errors/dollar-assignment-bug-53696.out | 2 ++ 2 files changed, 4 insertions(+) create mode 100644 modules/gdscript/tests/scripts/parser/errors/dollar-assignment-bug-53696.gd create mode 100644 modules/gdscript/tests/scripts/parser/errors/dollar-assignment-bug-53696.out (limited to 'modules/gdscript/tests/scripts/parser/errors') diff --git a/modules/gdscript/tests/scripts/parser/errors/dollar-assignment-bug-53696.gd b/modules/gdscript/tests/scripts/parser/errors/dollar-assignment-bug-53696.gd new file mode 100644 index 0000000000..e9690ee93d --- /dev/null +++ b/modules/gdscript/tests/scripts/parser/errors/dollar-assignment-bug-53696.gd @@ -0,0 +1,2 @@ +func test(): + $=$ diff --git a/modules/gdscript/tests/scripts/parser/errors/dollar-assignment-bug-53696.out b/modules/gdscript/tests/scripts/parser/errors/dollar-assignment-bug-53696.out new file mode 100644 index 0000000000..b3dc181a22 --- /dev/null +++ b/modules/gdscript/tests/scripts/parser/errors/dollar-assignment-bug-53696.out @@ -0,0 +1,2 @@ +GDTEST_PARSER_ERROR +Expect node path as string or identifier after "$". -- cgit v1.2.3