summaryrefslogtreecommitdiffstats
path: root/modules/gdscript/tests/scripts/parser/features/multiline_if.gd
blob: 7b82d9b1da65657fda2c133ca58dcd973d0b6aa6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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