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
else
Consider a function
proc a(b: int): int = if b == 1: return b else: return b+1
Written like the above, everything works as expected.
But if you have if part on the same line, like this:
if
proc a(b: int): int = if b == 1: return b
writing else: and pressing enter, else: gets de-indented, like this:
else:
proc a(b: int): int = if b == 1: return b else:
The text was updated successfully, but these errors were encountered:
The same happens for an else in a case
case
Sorry, something went wrong.
No branches or pull requests
Consider a function
Written like the above, everything works as expected.
But if you have
if
part on the same line, like this:writing
else:
and pressing enter,else:
gets de-indented, like this:The text was updated successfully, but these errors were encountered: