usfm-grammar
usfm-grammar copied to clipboard
Missing elements are not reported as error
When given an input like this without a chapter number
\\id gen \\c \\p \\v 1 test
We can see a MISSING info in the syntax tree.
(File (book (id (bookcode) (description))) (chapter (c (MISSING chapterNumber)) (paragraph (p (v (verseNumber)) (verseText (text))))))
But this can't be queried to report as error!
This issue on tree-sitter repo talks about this