Skip to content

Blocks with comments only throw ParseError #246

Closed
@StanAngeloff

Description

@StanAngeloff

Run the following on coffeescript.org:

a: 1
if a
    # I don't like comments
else
    a: 2

It used to compile just fine, but on master it seems comments cannot be the only token in a block. May have something to do with how the rewriter is adjusting them? If you put a newline just before the comment, it will compile OK.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions