Skip to content

Some formatting breaks in lambda functions #624

@rktprof

Description

@rktprof

Godot version

4.2.1

VS Code version

VSCodium 1.87.1

Godot Tools VS Code extension version

2.0.0

System information

macOS 14.4

Issue description

I'm not sure if other operators misbehaves but I also remember seeing the syntax coloring breaking in a lambda but can't remember what/where that was, but when using an equals sign in a lambda:

poll_animation.on_complete(func() -> void:
	highlight.visible = false
)

becomes:

poll_animation.on_complete(func() -> void:
	highlight.visible=false
)

(it also happens when the lambda content is on the same row)

Steps to reproduce

Take the example code above and just save the file

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions