We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I'm creating a custom snippet for erb tags:
<%= ... %> ... <% end %
~/.snippets_custom.json:
~/.snippets_custom.json
{ "eruby": { "extends": "html", "snippets": { "erb": "<%= | %>\n\t${child}<% end %>" } } }
And when doing div>erb>p, the output is:
div>erb>p
<div> <%= %> <p></p> <% end %> </div>
Note how the <% end %> is indented one level too much, and doesn't match the json file.
<% end %>
json
If I add \n after ${child}, so ...${child}\n<% end %>, then the indent is correct but there is obviously an extra, unneeded line before the end tag.
\n
${child}
...${child}\n<% end %>
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I'm creating a custom snippet for erb tags:
<%= ... %> ... <% end %
~/.snippets_custom.json
:And when doing
div>erb>p
, the output is:Note how the
<% end %>
is indented one level too much, and doesn't match thejson
file.If I add
\n
after${child}
, so...${child}\n<% end %>
, then the indent is correct but there is obviously an extra, unneeded line before the end tag.The text was updated successfully, but these errors were encountered: