You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As far as I am aware, ERB Syntax permits an embedded ruby comment in a non-comment erb tag
<% # This line is not an ERB comment, but it does nothing %>
But, once the treesitter encounters a mid-embedding comment, it evaluates and highlights the rest of the embedded ruby as comments.
For example
<%= tag.div class: 'outer-div' do %><%= tag.div class: 'inner-div' do %><p>Text</p><%end# .inner-div %><% end # .outer-div %><% value = 12 %><p><%= value %></p>
Even though this works just fine all the rest of the embedded ruby will be evaluated, from the fourth line:
<% end # .inner-div %>
until the end, all embedded ruby is highlighted as a comment.
As you may notice, the github syntax highlighter also exhibits this bug at present.
The text was updated successfully, but these errors were encountered:
As far as I am aware, ERB Syntax permits an embedded ruby comment in a non-comment erb tag
But, once the treesitter encounters a mid-embedding comment, it evaluates and highlights the rest of the embedded ruby as comments.
For example
Even though this works just fine all the rest of the embedded ruby will be evaluated, from the fourth line:
until the end, all embedded ruby is highlighted as a comment.
As you may notice, the github syntax highlighter also exhibits this bug at present.
The text was updated successfully, but these errors were encountered: