I already have syntax highlighting for javascript, but what I'd like to do is extend it with some additional rules.
What I've been trying to start, is using highlight "Prototype" with a cyan background.
I tried following some other answers, but they completely replace the syntax highlighting, but I want to simply add on to the current syntax highlighting.
Ideally this would be separated into their appropriate files, ie. highlighting rules in the syntax folder or whatever is appropriate.
This is what I currently have and it doesn't highlight Prototype
on my attack.js
file:
~/.vim/syntax/js.vim
:
syn match sophiePrototype "Prototype"
highlight sophiePrototype ctermfg=cyan guifg=#00ffff