summaryrefslogtreecommitdiff
path: root/tests/indent/gdscript/basic_blocks.gd
diff options
context:
space:
mode:
Diffstat (limited to 'tests/indent/gdscript/basic_blocks.gd')
-rw-r--r--tests/indent/gdscript/basic_blocks.gd16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/indent/gdscript/basic_blocks.gd b/tests/indent/gdscript/basic_blocks.gd
new file mode 100644
index 00000000..3bc04854
--- /dev/null
+++ b/tests/indent/gdscript/basic_blocks.gd
@@ -0,0 +1,16 @@
+extends Node
+
+func _ready():
+ var x := 2
+ for i in range(x):
+ prints(i)
+
+ while x > 0:
+ print(x)
+
+ if x > 0:
+ print("if test")
+ elif x < 0:
+ print("if test")
+ else:
+ print("if test")