Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Formatter: crash with an if affecting a variable and with a trailing condition #6742

Open
j8r opened this issue Sep 18, 2018 · 1 comment
Open

Comments

@j8r
Copy link
Contributor

j8r commented Sep 18, 2018

This produces a formatting Error: expecting keyword false or true, not IDENT, a, at :1:4 (Exception)

if a = 0
  a
end if true
@RX14
Copy link
Contributor

RX14 commented Sep 18, 2018

I'd go as far as to say that trailing ifs on multi-line expressions shouldn't compile.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants