With emacs 24.3, when a line ends with a comment, the next line fails to indent properly.
Example:
a := 2+2; // This is a comment
b := 3+3;
I cannot reproduce it with emacs 24.4, so I assume that it is a bug in smie.el which was fixed at some point.
For now, as a work-around, I can only recommend to either upgrade to 24.4 or to move such comments to a line of their own. Manually forcing the indentation would also work if one never reindents the entire buffer.
With emacs 24.3, when a line ends with a comment, the next line fails to indent properly.
Example:
I cannot reproduce it with emacs 24.4, so I assume that it is a bug in smie.el which was fixed at some point.
For now, as a work-around, I can only recommend to either upgrade to 24.4 or to move such comments to a line of their own. Manually forcing the indentation would also work if one never reindents the entire buffer.