ejs-grammar icon indicating copy to clipboard operation
ejs-grammar copied to clipboard

Fix incorrect negative lookahead pattern

Open forivall opened this issue 4 years ago • 3 comments

seems like you had based the syntax on a jsdoc syntax and missed this? idk. anyways, this works.

forivall avatar May 06 '21 20:05 forivall

I finally fixed my issues with the following gist: https://gist.github.com/forivall/d6a1fbc1ca902670ad51973b974ac177 - does what #71 does, although it doesn't highlight the html, but that's good enough for me.

forivall avatar May 07 '21 01:05 forivall

@forivall I know this is really late. Sorry! Can you show me the output of both versions so that I can see exactly what this fixes?

Betanu701 avatar Feb 08 '23 14:02 Betanu701

Looking at the old code i was working on, it looks like the situation was ejs inside of an html attribute - for example:

<a href="<%= data.link.url %>">some text here, will still be "javascript" scope without this change</a> still javascript here

forivall avatar Feb 10 '23 01:02 forivall