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

File tree expands too much :smile:

Open DeznekCZ opened this issue 1 year ago • 1 comments

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:

image

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 avatar Aug 27 '22 08:08 DeznekCZ

@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.

Betanu701 avatar Feb 08 '23 14:02 Betanu701