Skip to content

Whiteblock termination should correspond with oneline whiteblock ASI #39

@wcjohnson

Description

@wcjohnson

This compiles:

allAboard = [theExpressway() -> <To/>, crazyTown]

So should these:

allAboard = [theExpressway() ->
  <To/>, crazyTown]
allAboard = [theExpressway() ->
  <ToCrazyTown/>]

Plan:

  • Separate parseWhiteBlockBody from parseBlockBody
  • When checking for the end of a whiteBlock, condition is either indentLevel <= base, or this.match(closingDelimiter) where closingDelimiter is anything that could also satisfy ASI.
  • Should probably centralize the list of these things in one place, like isLegalAsiToken or something.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions