SublimeText / CoffeeScript

Syntax highlighting and checking, commands, shortcuts, snippets, watched compilation and more.
439 stars 64 forks source link

if "class" appears in coffeescript code, e.g., class_name, subsequent lines are indented #247

Closed canoeberry closed 1 month ago

canoeberry commented 6 years ago
draw: () ->
  super
  @element.addClass(@class_name)
    indents_here_but_why()
  console.log ""

The reason it indents like this is because of class_name. It also happens if the variable is classname.

So any occurrence of class (but not Class) causes indent to increase. Can that be fixed? I am ... not good with sublime syntaxes but I am willing to play around if somebody can give me a hint?