usfm-grammar icon indicating copy to clipboard operation
usfm-grammar copied to clipboard

Missing elements are not reported as error

Open kavitharaju opened this issue 3 years ago • 0 comments

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

kavitharaju avatar Sep 23 '22 10:09 kavitharaju