Skip to content

Possible USFM parser bug when // occurs in \id. #413

@davidbaines

Description

@davidbaines

This was caught and described by Claude:

The \id line of grcsbl/41MATgrc.SFM is: \id MAT NT books updated from https://github.com/LogosBible/SBLGNT
It contains a URL with //. The sil-machine USFM parser interprets // as an optional-break marker (\pb-style), even inside an \id field. When opt_break fires before any verse has been opened (state is MAT 1:0),

self._row_texts_stack is empty and [-1] raises IndexError. This is a sil-machine parser bug — it incorrectly tokenises // within identifier text.

Pretty rare but probably easy to fix.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    🆕 New

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions