Skip to content

Support single line compound statements #1

@nya3jp

Description

@nya3jp

For single-line compound statements, "end" should be put at the end of the line:

if a > 28: a = 3; end

In order to parse this correctly, we need more info from lexical analysis. Note that checking lineno is not enough to tell if it is a single-line statement due to logical lines. For example:

if a > 28: \
      a = 3; end

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