You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On the line after this class declaration, pressing Tab causes an indentation. The same happens if I name the class If or While, but not, e.g., Foo.
The text was updated successfully, but these errors were encountered:
nosewings
changed the title
Scala-mode indents inappropriately for classes with keyword names
Inappropriate Indentation for classes with keyword names
Oct 18, 2020
On further inspection, I believe this is caused by the use of looking-at in scala-syntax:looking-back-tokenhere, called from scala-indent:body-phere. M-x toggle-case-fold-search fixes the problem, so I'm not sure whether it should still be considered a bug.
Minimal example:
On the line after this class declaration, pressing Tab causes an indentation. The same happens if I name the class
If
orWhile
, but not, e.g.,Foo
.The text was updated successfully, but these errors were encountered: