The following code block makes any script crash GDToolkit.
var myfunc := func() -> void:
for i in 10:
print("test")
I believe this is likely due to it expecting lambdas to not require newlines, though loops do, and crashing when it encounters it.
When running gdformat <script> --verbose the following is output to the console:
gdformat-test.gd:
var myfunc := func() -> void:
^
Unexpected token Token('_NL', '\n\t') at line 3, column 30.
Expected one of:
* BIN
* NAME
* BANG
* LONG_STRING
* NOT
* TILDE
* CIRCUMFLEX
* MINUS
* PLUS
* PERCENT
* LPAR
* HEX
* FUNC
* PASS
* AWAIT
* RETURN
* LBRACE
* SET
* REGULAR_RSTRING
* GET
* DOLLAR
* REGULAR_STRING
* LSQB
* VAR
* LONG_RSTRING
* NUMBER
* AMPERSAND
Running on Linux Pop!_OS 22.04, installed via pipx, Godot 4.3-rc3
The following code block makes any script crash GDToolkit.
I believe this is likely due to it expecting lambdas to not require newlines, though loops do, and crashing when it encounters it.
When running
gdformat <script> --verbose
the following is output to the console:Running on Linux Pop!_OS 22.04, installed via pipx, Godot 4.3-rc3