GDScript: Allow mixed indentation on blank lines
This commit is contained in:
parent
16a93563bf
commit
00ad9e484e
4 changed files with 35 additions and 9 deletions
2
modules/gdscript/tests/scripts/parser/.editorconfig
Normal file
2
modules/gdscript/tests/scripts/parser/.editorconfig
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
[*.{gd,out}]
|
||||
trim_trailing_whitespace = false
|
||||
|
|
@ -0,0 +1,20 @@
|
|||
# Empty line:
|
||||
|
||||
|
||||
# Comment line:
|
||||
# Comment.
|
||||
|
||||
func test():
|
||||
print(1)
|
||||
|
||||
if true:
|
||||
|
||||
# Empty line:
|
||||
|
||||
|
||||
print(2)
|
||||
|
||||
# Comment line:
|
||||
# Comment.
|
||||
|
||||
print(3)
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
GDTEST_OK
|
||||
1
|
||||
2
|
||||
3
|
||||
Loading…
Add table
Add a link
Reference in a new issue