Skip to content

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

@nyxkn

Description

@nyxkn

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions