It seems that using multiple code spans with HTML comments isn't working properly. Using a single code span with a HTML comment is working fine though. Consider the following examples.
A single code span with a comment at the end of a paragraph works fine.
foo `<!--comment-->`
✅ (document (paragraph (html_tag)))
A single comment at the beginning of a paragraph works fine as well.
`<!--comment-->` foo
✅ (document (paragraph (html_tag)))
However, having two code spans with HTML results in incorrect results.
I'm not experienced with writing Tree-sitter parsers, so I'm unsure how the tree should look when parsing the last example.
However, I think it's supposed to look like this:
It seems that using multiple code spans with HTML comments isn't working properly. Using a single code span with a HTML comment is working fine though. Consider the following examples.
A single code span with a comment at the end of a paragraph works fine.
A single comment at the beginning of a paragraph works fine as well.
However, having two code spans with HTML results in incorrect results.
I'm not experienced with writing Tree-sitter parsers, so I'm unsure how the tree should look when parsing the last example. However, I think it's supposed to look like this: