Skip to content

Generator expressions aren't recognised properly and break indentation #183

@spaceLem

Description

@spaceLem

I'm having issues with generator expressions such as

    x = (i for i in 1:10)
    y = sum(1/n for n in 1:10)

They don't seem to highlight properly, the closing ) is highlighted as though it were an erroneous additional parenthesis.

Also, lines after the expression are indented, as though the ) didn't exist and the extra indent level from the opening parenthesis ( is still active. I've attached a screenshot to show what I mean (showing that I've just run gg=G to indent everything).

Screenshot from 2019-11-27 18-01-25

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions