Wrong syntax highlighting on ECR
MatheusRich opened this issue · 11 comments
Of course, it doesn't seem to be related to string interpolation :-)
I'll see if I can see what's going on...
It would have been helpful to have the textual thing, not an image... oh well...
I won't fix it but your best bet is to copy this one from Ruby and adapt it to Crystal: https://github.com/rubyide/vscode-ruby/blob/master/packages/vscode-ruby/syntaxes/erb.cson.json
Thank you! But these are all different bugs, I would open separate issues for them.
@asterite I thought it would make sense to keep this Highlight issues together, but I'll open another issue. Thanks!
@MatheusRich can you please provide a sample file to see the situation about this ticket?
@maxbertinetti here it is:
<% (1..10).each do |index| %>
<tr class="<%= index.odd? ? "odd" : "even" %>">
<% end %>
@MatheusRich I think is not correct the way you are trying to render this. You must use single quote outside and double inside.
BTW in v0.8.2