Skip to content

A block this parser has never seen must cost it nothing - #18

Merged
oblomov-dev merged 1 commit into
mainfrom
claude/parser-unknown-block
Aug 16, 2026
Merged

A block this parser has never seen must cost it nothing#18
oblomov-dev merged 1 commit into
mainfrom
claude/parser-unknown-block

Conversation

@oblomov-dev

Copy link
Copy Markdown
Member

The row pattern accepted <sub> blocks and bare text and nothing else. A future block with any other tag — a <span>, a <code> — would have made every row unmatchable, and that failure does not read as a parse error over here: it reads as "there are no samples for that".

Twice now a new kind of block has arrived from the sample repositories (the @docs links, then the @summary sentence), and the second one is what this change follows.

A block is now <br> plus anything, tagged or not, and its tag decides what it is:

tag what it is
none the summary sentence
<sub> the small type — keywords, then the docs links
anything else carried through and ignored

The same generalisation went into abap2UI5/docs' link-samples parser, which reads the same rows and failed the same way this morning. The shape is maintained in three repositories and read in two — a contract between five programs, and the two readers must be the forgiving end of it.

41 tests, including a row carrying a <span> block between the two the parser reads.


Generated by Claude Code

The row pattern accepted `<sub>` blocks and bare text and nothing else. A
future block with any other tag - a `<span>`, a `<code>` - would have made
every row unmatchable, and that failure does not read as a parse error over
here: it reads as "there are no samples for that". Twice now a NEW KIND of
block has arrived from the sample repositories (the `@docs` links, then the
`@summary` sentence), and the second one is what this change follows.

A block is now `<br>` plus anything, tagged or not, and its TAG decides what
it is: no tag is the sentence, `<sub>` is the small type (keywords, then the
docs links), and anything else is carried through and ignored.

The same generalisation went into abap2UI5/docs' link-samples parser, which
reads the same rows and failed the same way this morning. The shape is
maintained in three repositories and read in two - it is a contract between
five programs, and the two readers must be the forgiving end of it.

  41 tests, including a row carrying a <span> block between the two the
  parser reads
Copilot AI lite review requested due to automatic review settings August 16, 2026 18:48

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@oblomov-dev
oblomov-dev merged commit 83fb792 into main Aug 16, 2026
2 checks passed
@oblomov-dev
oblomov-dev deleted the claude/parser-unknown-block branch August 16, 2026 19:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants