Skip to content

Feature Request: Line wrap on chained method calls #219

Description

@trustytrojan

It would be really nice to have a setting that enforces this style of line wrap on the method call operator :, using continuation_indent to indent the wrapped lines.

-- before
self:xy(PB.list_center_x, PB.list_center_y):zoomto(PB.list_width, PB.desc_box_height):diffuse(color('#1a1a1a'))

-- after
self:xy(PB.list_center_x, PB.list_center_y)
	:zoomto(PB.list_width, PB.desc_box_height)
	:diffuse(color('#1a1a1a'))

Currently, it only wraps the right-most token that breaks the line width constraint to the next line:

-- after (current behavior)
self:xy(PB.list_center_x, PB.list_center_y):zoomto(PB.list_width, PB.desc_box_height):diffuse(color(
'#1a1a1a'))

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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