Skip to content

Conversation

@zdenko
Copy link
Collaborator

@zdenko zdenko commented Feb 17, 2018

Fixes #4898. When indent line is ended with the backslash, Lexer incorrectly sets indentation levels.

if ( \
      false \
      or \
      true \
    )
    42

###
if (false || true) {
  42;
}
###

if ( \
    false \
    or \
    true \
)
  42

###
if (false || true) {
  42;
}
###

@GeoffreyBooth
Copy link
Collaborator

Well this is a pretty clean fix. @vendethiel and @Inve1951?

@vendethiel
Copy link
Collaborator

Just wondering how many other places that unless will have to appear at ;-).

@GeoffreyBooth GeoffreyBooth merged commit eb70092 into jashkenas:master Feb 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants