connorlay / tree-sitter-eex

EEx grammar for Tree-sitter
9 stars 3 forks source link

allow comments and directives to be empty #2

Closed the-mikedavis closed 2 years ago

the-mikedavis commented 2 years ago

testing these out in iex looks like they're ok syntax-wise

Interactive Elixir (1.13.1) - press Ctrl+C to exit (type h() ENTER for help)
iex(1)> "<% %>" |> EEx.eval_string
""
iex(2)> "<%# %>" |> EEx.eval_string                   
""

there was a similar situation in tree-sitter-embedded-template#10 (although now that I think about it, I didn't test out empty directives for that grammar, I should probably make a follow-up PR)