darron / language-ejs

EJS support for Atom.
Apache License 2.0
14 stars 7 forks source link

Closing tags looks like JS operators #18

Closed HectorLS closed 4 years ago

HectorLS commented 7 years ago

%>, <%= and <%- are detected as JS operator instead of punctuation marks

And the html tags inside detect the punctuation mark as operators ( greater than etc... ) too

sigmasoldi3r commented 7 years ago

Also it happens (It may be related) that when using blocks {} the syntax breaks and displays it as javascript even after closing the tag with %>

Example:

<% for (project of projects) { %> // This
(...)

See this example: imagen

If you remove the opening block you can see that this fixes: imagen

But I think that this won't work without opening and closing the for n.n'

acan13 commented 7 years ago

Same issue here. It wouldn't be much of a problem except it deactivates emmet inside of the brackets, making it really annoying to add any html inside the loop.

HectorLS commented 4 years ago

Closing due to inactivity

sigmasoldi3r commented 4 years ago

erm... it is fixed?