How To Highlight The "->" Symbol In My Coffee.vim Syntax File?
I just copied javascript.vim into coffee.vim now coffee files are highlighted like js files. Now I would like to make the CoffeScript function arrow '->' the same color as: hi S
Solution 1:
If the ->
so far isn't matched by any other syntax group, it should be as simple as
:syntax match coffeescriptArrow "->":highlight def link coffeescriptArrow Special
If you don't want to modify the original syntax file, put this into ~/.vim/after/syntax/coffeescript.vim
.
Post a Comment for "How To Highlight The "->" Symbol In My Coffee.vim Syntax File?"