I would use it if such a feature were included. On Tue, Aug 11, 2020 at 7:35 AM Richard Michael <[email protected]> wrote:
> 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 > > -- > You received this message because you are subscribed to the Google Groups > "elixir-lang-core" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/elixir-lang-core/6ce4148a-cca3-461c-890c-d04f21add4a0n%40googlegroups.com > <https://groups.google.com/d/msgid/elixir-lang-core/6ce4148a-cca3-461c-890c-d04f21add4a0n%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- Regards, Bruce Tate CEO <https://bowtie.mailbutler.io/tracking/hit/f8218219-d2a8-4de4-9fef-1cdde6e723f6/c7c97460-016e-45fb-a4ab-0a70318c7b97> Groxio, LLC. 512.799.9366 [email protected] grox.io -- You received this message because you are subscribed to the Google Groups "elixir-lang-core" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-core/CAFXvW-5F4wzQC2P3UMKxfFDygNTbo9e7Ev_QW--fW0BAdExLAg%40mail.gmail.com.
