summaryrefslogtreecommitdiffstats
path: root/modules/gdscript/tests/scripts/parser/features/basic_expression_matching.gd
diff options
context:
space:
mode:
authorAdam Scott <ascott.ca@gmail.com>2022-12-26 11:24:17 -0500
committerAdam Scott <ascott.ca@gmail.com>2023-01-10 12:25:35 -0500
commit44d1d72af19ff7874704fa88d7d08fe4f782c9db (patch)
tree11f91bb25d41576256c515818aa0d913b95c3374 /modules/gdscript/tests/scripts/parser/features/basic_expression_matching.gd
parent91713ced81792b10fdc9367b7f355738e5d52777 (diff)
downloadredot-engine-44d1d72af19ff7874704fa88d7d08fe4f782c9db.tar.gz
Add GDScript `.editorconfig` rules
- Uniformize `.gd` unit test files indentation to tabs (where needed)
Diffstat (limited to 'modules/gdscript/tests/scripts/parser/features/basic_expression_matching.gd')
-rw-r--r--modules/gdscript/tests/scripts/parser/features/basic_expression_matching.gd48
1 files changed, 24 insertions, 24 deletions
diff --git a/modules/gdscript/tests/scripts/parser/features/basic_expression_matching.gd b/modules/gdscript/tests/scripts/parser/features/basic_expression_matching.gd
index 2b46f1e88a..c959c6c6af 100644
--- a/modules/gdscript/tests/scripts/parser/features/basic_expression_matching.gd
+++ b/modules/gdscript/tests/scripts/parser/features/basic_expression_matching.gd
@@ -1,27 +1,27 @@
func foo(x):
- match x:
- 1:
- print("1")
- 2:
- print("2")
- [1, 2]:
- print("[1, 2]")
- 3 or 4:
- print("3 or 4")
- 4:
- print("4")
- {1 : 2, 2 : 3}:
- print("{1 : 2, 2 : 3}")
- _:
- print("wildcard")
+ match x:
+ 1:
+ print("1")
+ 2:
+ print("2")
+ [1, 2]:
+ print("[1, 2]")
+ 3 or 4:
+ print("3 or 4")
+ 4:
+ print("4")
+ {1 : 2, 2 : 3}:
+ print("{1 : 2, 2 : 3}")
+ _:
+ print("wildcard")
func test():
- foo(0)
- foo(1)
- foo(2)
- foo([1, 2])
- foo(3)
- foo(4)
- foo([4,4])
- foo({1 : 2, 2 : 3})
- foo({1 : 2, 4 : 3})
+ foo(0)
+ foo(1)
+ foo(2)
+ foo([1, 2])
+ foo(3)
+ foo(4)
+ foo([4,4])
+ foo({1 : 2, 2 : 3})
+ foo({1 : 2, 4 : 3})