Closed bahmanm closed 6 years ago
Imagine the following code block, correctly indented assuming the indentation size is 2:
if (x > 10) x * 2 else x // OR while (x > 10) x += 1
In Emacs they are indented as below:
if (x > 10) x * 2 // note the missing indent else x // ditto // OR while (x > 10) x += 1 // ditto
I'm not sure if it's an issue with the mode or with my configuration. What am I missing?
That's definitely a bug with the mode. It's largely counting { at the moment, so it doesn't yet handle this case.
Imagine the following code block, correctly indented assuming the indentation size is 2:
In Emacs they are indented as below:
I'm not sure if it's an issue with the mode or with my configuration. What am I missing?