Skip to content

Sub-block terminator can cause parent block termination #1275

@ejones

Description

@ejones

This occurs, apparently, when the line that terminates the sub-block expression is indented by exactly one space EDIT: an odd number of spaces...? from the initial indentation of the parent block, and the contents of the sub-block are indented past that, and the line following the terminator is at the original indentation:

# These don't work
->
  (
    a
   )
  b
->
  (
      a
     )
  b
###
(function() {
  return a;
});
b;
###

# These work correctly:
->
  (
    a
  )
  b
->
  (
     a
    )
  b
->
  (
    a
   )
   b
###
(function() {
  a;
  return b;
});
###

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions