snowkit / atom-haxe

atom.io haxe plugin, includes completion, error checking and more.
MIT License
43 stars 10 forks source link

Don't decrease indent for "case" and "default" #53

Closed kevinresol closed 8 years ago

kevinresol commented 8 years ago

It is causing unwanted indent decrease for "inline cases" (i.e. case cond: expr; in the same line)

anissen commented 8 years ago

If this works; thank you! This issue has been driving me crazy! Didn't know it was related to atom-haxe though. :+1:

jeremyfa commented 8 years ago

Thanks! I will try to work with the fix and see how it goes :)

kevinresol commented 8 years ago

I tried to make it smart enough to decrease the indent only when the last line is not an inline case. But failed :stuck_out_tongue: