GDScriptify icon indicating copy to clipboard operation
GDScriptify copied to clipboard

Functions with arguments spanning multiple lines aren't picked up correctly

Open nyxkn opened this issue 3 years ago • 1 comments

When writing library-type code it's common to end up with very long argument lines, which we might want to split.

An example from a library I was just working on:

func arc_normal(position: Vector3, normal: Vector3, angle_from: float, angle_to: float, radius: float = 1.0, draw_origin: bool = false, color: Color = current_color) -> void:

This should most definitely be split into two lines. Something like this:

func arc_normal(position: Vector3, normal: Vector3, angle_from: float, angle_to: float,
            radius: float = 1.0, draw_origin: bool = false, color: Color = current_color) -> void:

But when this is done, gdscriptify only picks up the first line and ignores the second.

nyxkn avatar Mar 03 '22 04:03 nyxkn

I'll have a look. It should work on Arrays and Dictionaries, but functions could have escaped the parsing.

hiulit avatar Mar 03 '22 08:03 hiulit