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
Each extra pair of // adds one more line below the comment that is highlighted as a comment. In the above example, the first two lines below the comment are highlighted as comments.
The text was updated successfully, but these errors were encountered:
Anders Bach Nielsen [X] (nielsen) said:
This is a limitation of Emacs where the syntax choosen for Scala can not be handled by Emacs.
Let me try to explain the problem.
In Scala there are two kinds of comments, the single line // and the multiline /* / comments. However these comment are allowed to be nested so / /* **/ **/ is perfectly ok. If this was the only comment then it would not be a problem, however because // uses the same characters to indicate single line comment emacs goes bad :-/ If the single line comment should be ## or something that does not include a /, then emacs would be able to handle it.
So basically, this is a limitation in emacs itself and it cant be fixed as it is (or to my knowledge). Sorry
Suraj Acharya (surajacharya) said:
I was able to fix the reported problem by setting the nested comment flag only for '/* ... */' style comments. scala-mode.el needs the following changes :
@@ -142,10 +142,10 @@
;; comments
;; the `n' means that comments can be nested
Open the following file in scala-mode in emacs:
////// abc asd das das das asd
Each extra pair of
//
adds one more line below the comment that is highlighted as a comment. In the above example, the first two lines below the comment are highlighted as comments.The text was updated successfully, but these errors were encountered: