question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`elseif` not indented properly in Julia code

See original GitHub issue

Typing out the following Julia language example highlights the issue, where elseif isn’t indented appropriately

if somecondition
    somecode
    elseif someothercondition
else
end

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
marijnhcommented, Feb 1, 2017

It seems that when you type, you go through ‘else’, which is indented properly, but once the word elseif is typed, it no longer matches else, so the indentation was off. Attached patch handles elseif properly.

0reactions
IanButterworthcommented, Feb 1, 2017

Great thanks @marijnh @pabloferz

Read more comments on GitHub >

github_iconTop Results From Across the Web

`elseif` not indented properly in Julia code · Issue #4519 ... - GitHub
It seems that when you type, you go through 'else', which is indented properly, but once the word elseif is typed, it no...
Read more >
REPL, copy/paste and auto indent in julia 0.7 - #11 by rfourquet
when the prompt “julia>” is written on the terminal, but I failed to find the line of code where to do it. Adding...
Read more >
Why Julia is not indentation-based like Python? - Stack Overflow
I've seen a significant number of live Python demos flounder as the presenter struggled with indentation issues. It feels to me like Python ......
Read more >
JuliaFormatter · JuliaHub
Width-sensitive formatter for Julia code. Inspired by gofmt, refmt, and black. ... If import is used in the following context it is NOT...
Read more >
CodeMirror: Release History - Neuromics
Recognize vendor prefixes on pseudo-elements. julia mode: Properly indent elseif lines. markdown mode: Properly recognize the end of fenced code blocks when ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found