From bab0afc8219d05b0a13a528ba3873f5d634f3914 Mon Sep 17 00:00:00 2001 From: George Marques Date: Tue, 21 Sep 2021 13:40:39 -0300 Subject: GDScript: Allow multiple lines in signal parameters declaration --- .../scripts/parser/features/signal_declaration.gd | 20 ++++++++++++++++++++ .../scripts/parser/features/signal_declaration.out | 2 ++ 2 files changed, 22 insertions(+) create mode 100644 modules/gdscript/tests/scripts/parser/features/signal_declaration.gd create mode 100644 modules/gdscript/tests/scripts/parser/features/signal_declaration.out (limited to 'modules/gdscript/tests/scripts') diff --git a/modules/gdscript/tests/scripts/parser/features/signal_declaration.gd b/modules/gdscript/tests/scripts/parser/features/signal_declaration.gd new file mode 100644 index 0000000000..9ad98b78a8 --- /dev/null +++ b/modules/gdscript/tests/scripts/parser/features/signal_declaration.gd @@ -0,0 +1,20 @@ +#GDTEST_OK + +# No parentheses. +signal a + +# No parameters. +signal b() + +# With paramters. +signal c(a, b, c) + +# With parameters multiline. +signal d( + a, + b, + c, +) + +func test(): + print("Ok") diff --git a/modules/gdscript/tests/scripts/parser/features/signal_declaration.out b/modules/gdscript/tests/scripts/parser/features/signal_declaration.out new file mode 100644 index 0000000000..0e9f482af4 --- /dev/null +++ b/modules/gdscript/tests/scripts/parser/features/signal_declaration.out @@ -0,0 +1,2 @@ +GDTEST_OK +Ok -- cgit v1.2.3