Closed gugiserman closed 9 years ago
Could you show us screenshot or sample code ?
ubuntu 14.04, emacs 24.3, coffee-mode and monokai
same code in WebStorm from intellij, using monokai as well:
I see.
Why isn't "@" highlighted as keyword in variables?
Sorry I don't understand. Original code implements such highlighting. However coffee-mode highlights @
same as Vim, SublimeText, Atom.io.
I suppose you can customize @
highlighting with following configuration.
(defface my/coffee-at-mark
'((t (:foreground "green")))
"my at mark")
(font-lock-add-keywords
'coffee-mode
'(("\\(@\\)\\([_[:word:]]+\\|\\<this\\)\\>"
(1 'my/coffee-at-mark)
(2 font-lock-variable-name-face))))
Screenshot is here.
@syohex thank you very much!!!!!
Why isn't "@" highlighted as keyword in variables?