In complex EEx templates I find it helpful to document the end of control-flow or loop statements. For example:
<% if cond do %>
...long content
<% end # cond %>
Unfortunately, this results in compiler syntax error with "unexpected token: end".
However, EEx does accept "to end of line" style comments with other statements. For example:
<%= if cond, do: "foo" # a comment %>
<%= "foo" # a comment %>
As workaround I can use:
<% end %><%# if cond %>
Rather clunky, especially since end of line comments compile elsewhere.
Could the EEx compiler be enhanced to accept a comment following `end` ?
This seems not too complicated, I am happy to work on it with a bit of guidance.
(Apologies if I have simply made a mistake or overlooked EEx usage.)
Regards,
Richard