tree-sitter / tree-sitter-embedded-template

Tree-sitter grammar for embedded template languages like ERB, EJS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Parsing fails on empty ERB comments

hmac opened this issue · comments

The following code, a comment block with no comment text, will fail to parse:

<%# %>
(template [0, 0] - [1, 0]
  (comment_directive [0, 0] - [1, 0]
    (comment [0, 3] - [1, 0])))
example.erb	0 ms	(MISSING "%>" [1, 0] - [1, 0])