ejs-grammar
ejs-grammar copied to clipboard
File tree expands too much :smile:
Steps to reproduce:
Used in example image:
<% authorized = authorized ? true : false; %>
<% if (authorized) { %>
<% let originalSelector = selector; %>
<% selector = { type: 'undefined' }; %>
<% selector = originalSelector; %>
<% } %>
<html>
</html>
Expected result:
Question
Can be tags:
- contianing no '{' '}' or pair of them marked as single line tags like <br>
- matching <% .* { %> as open tags
- matching <% } %> as close tags
I may be helpfull for closing of parent elements.
@DeznekCZ Do you know how to force this within a language grammar? There were a few pull requests I just pulled in. See if those fixes this, I don't think it would though.