Scala mode indentation

multiplexd <[email protected]> Sat, 21 Apr 2018 11:52:21 +0000
Newsgroups gmane.editors.qemacs.devel
Message-ID <[email protected]>
Hi,

Scala mode uses the same indentation function that is used for other C-like languages. However, in Scala semicolons at the end of lines are optional, and the convention is to omit them. This causes issues when trying to work on Scala code in Qemacs, as new lines of code are incorrectly indented as if they are a single command split across multiple lines.

I've looked at c_indent_mode() in clang.c to try and special-case this, but it's not obvious how and where trailing semicolons are handled.