-
-
Notifications
You must be signed in to change notification settings - Fork 20
Open
Labels
upstreamThe issue (likely) can't be solved in this repository: a library needs a changeThe issue (likely) can't be solved in this repository: a library needs a change
Description
Bug Description
The formatter removes the space between if and the following identifier in inline lambda functions, creating invalid syntax.
Input (valid GDScript):
visibility_changed.connect(func() -> void: if visible:_update())Output (invalid GDScript):
visibility_changed.connect(func() -> void: ifvisible:_update())How to Reproduce
# Run the formatter on test.gd
gdscript-formatter test.gd
# Check the diff - line 5 will show 'ifvisible' instead of 'if visible'Version
gdscript-formatter 0.18.2
Expected Behavior
The space between if and visible should be preserved.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
upstreamThe issue (likely) can't be solved in this repository: a library needs a changeThe issue (likely) can't be solved in this repository: a library needs a change