pdftract/templates/sdk-skeleton/go/GENERATED.tera
jedarden e176fa68ad fix(pdftract-2hm4): fix hex string lexer invalid char handling and whitespace/comment skipping
Two fixes:

1. Hex string lexer now flushes dangling nibble when encountering invalid
   characters. For `<4X8Y>`, the X and Y are invalid, so we flush nibble 4
   as 0x40, then flush nibble 8 as 0x80, producing `\x40\x80`.

2. Fixed skip_whitespace_and_comments() to properly handle whitespace
   after comments. The previous logic only continued looping if the next
   byte was `%`, missing cases where whitespace follows a comment.

All 52 lexer tests pass.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-18 01:47:17 -04:00

5 lines
268 B
Text

# This file marks the SDK as generated by pdftract sdk codegen
# DO NOT edit files in src/codegen/ by hand - they will be overwritten
# Hand-written ergonomics and idiomatic wrappers belong in src/ergonomics/
GENERATED_BY={{ version }}
GENERATED_AT={{ generated_at }}