I'm pretty new to vim and am working on a node.js project with ejs files. I have syntax highlighting turned on with syntax on
in my .vimrc
file. I also have an ejs file that contains JavaScript code within a tag. Here's a basic example:
<input type="text" <%- typeof due == 'undefined' ? '' : ('value="' + due + '" ') %>/>
My problem is that the <>
characters that enclose the JavaScript are both highlighted in bright red. I assume this is supposed to indicate an error, but there is no error in this code. How can I let vim know that something like this is okay?
>
) instead of the inner one.