Godot: 4.7.1
GDScript formatter: 0.24.0
Settings: default, except for "Format mode - Reorder code"
Error: Parse Error: Unindent doesn't match the previous indentation level.
This is what formatter produces.
func save() -> Dictionary:
return {
"best_total_score": 0,
"levels": levels.map(
func(item: LevelState):
return item.save(),
), # this line is marked with the error
}
upd. strangely enough if I add return type (that I forgot to add, my bad), the error disappears? So it's maybe a GDScript issue?
func save() -> Dictionary:
return {
"best_total_score": 0,
"levels": levels.map(
func(item: LevelState) -> Dictionary:
return item.save(),
),
}
Godot: 4.7.1
GDScript formatter: 0.24.0
Settings: default, except for "Format mode - Reorder code"
Error: Parse Error: Unindent doesn't match the previous indentation level.
This is what formatter produces.
upd. strangely enough if I add return type (that I forgot to add, my bad), the error disappears? So it's maybe a GDScript issue?