We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
then
The following code, compile fine:
case :foo when :foo then puts "foo" when :bar then # comment when :baz then puts "baz" end
But it get formatted like this:
case :foo when :foo then puts "foo" when :bar # comment then when :baz then puts "baz" end
which doesn't compile any more. => Error: unexpected token: "then" (expecting when, else or end)
Error: unexpected token: "then" (expecting when, else or end)
I would expect the code to staying the same.
Crystal 1.3.2 (2022-01-19) LLVM: 13.0.0 Default target: x86_64-pc-linux-gnu
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The following code, compile fine:
But it get formatted like this:
which doesn't compile any more.
=>
Error: unexpected token: "then" (expecting when, else or end)
I would expect the code to staying the same.
crystal -v
The text was updated successfully, but these errors were encountered: