diff options
Diffstat (limited to 'modules/gdscript/tests/scripts/parser/features/multiline_if.gd')
-rw-r--r-- | modules/gdscript/tests/scripts/parser/features/multiline_if.gd | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/modules/gdscript/tests/scripts/parser/features/multiline_if.gd b/modules/gdscript/tests/scripts/parser/features/multiline_if.gd new file mode 100644 index 0000000000..86152f4543 --- /dev/null +++ b/modules/gdscript/tests/scripts/parser/features/multiline_if.gd @@ -0,0 +1,14 @@ +func test(): + # Line breaks are allowed within parentheses. + if ( + 1 == 1 + and 2 == 2 and + 3 == 3 + ): + pass + + # Alternatively, backslashes can be used. + if 1 == 1 \ + and 2 == 2 and \ + 3 == 3: + pass |