-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix code highlighting #79
Comments
All pull request on fixing this are welcome. However, you should also check out ensime. |
I have another issue with highlighting, i.e object name in this case:
Is highlighted as a constant, but it should be a type like class or trait. In fontlock i've found this two lines: ;; object
(,(concat "\\<object[ \t]+\\("
scala-syntax:id-re
"\\)")
1 font-lock-constant-face)
;; class, trait, object
(,(concat "\\<\\(class\\|trait\\)[ \t]+\\("
scala-syntax:id-re
"\\)")
2 font-lock-type-face) So not sure what's the right highlighting? |
Consider the following code
Here there are two Now consider |
I've just started using emacs, so couldn't find myself where and how to fix it, but it's quite disturbing to write function types like:
And if i declare type like
type <+>[A, B]
in addition to the previous incorrect highlighting,<+>
also has incorrect color (i expected in to be similar to=>
)Where i have the the first type highlighted with one color (like all other types) and others with a different color like std names.
Also in things like
type \//
, the hole line is treated like a comment, although it is a valid name.Is it possible to fix this at all with regexps or it more semantical parsing?
The text was updated successfully, but these errors were encountered: