pdftract/crates/pdftract-core/src/parser
jedarden 7818f22735 fix(pdftract-5upi): remove diagnostic emission for unknown keywords
The lexer should not emit diagnostics for unknown keywords because:
1. Many valid keywords (trailer, xref, etc.) are not in the initial dispatch table
2. The object parser is responsible for validating keywords against known operators
3. Emitting diagnostics here causes false positives for valid PDF constructs

This change aligns with the task requirement that unknown keywords emit
Token::Keyword without a diagnostic, letting the object parser handle
STRUCT_UNKNOWN_KEYWORD if needed.

Co-Authored-By: Claude Code <noreply@anthropic.com>
2026-05-20 22:03:58 -04:00
..
lexer fix(pdftract-5upi): remove diagnostic emission for unknown keywords 2026-05-20 22:03:58 -04:00
object feat(pdftract-59zz): implement MCP bearer token ingress channels and TH-03 enforcement 2026-05-18 02:47:54 -04:00
catalog.rs docs(pdftract-49f8): establish Cargo.lock policy and documentation 2026-05-20 18:13:14 -04:00
diagnostic.rs docs(pdftract-49f8): establish Cargo.lock policy and documentation 2026-05-20 18:13:14 -04:00
mod.rs docs(pdftract-46lw): add forward_scan_xref verification note 2026-05-20 18:52:07 -04:00
objstm.rs feat(pdftract-6bxw): implement object stream (ObjStm) parser 2026-05-20 19:03:53 -04:00
ocg.rs docs(pdftract-49f8): establish Cargo.lock policy and documentation 2026-05-20 18:13:14 -04:00
outline.rs feat(pdftract-5calf): implement outline traversal with UTF-16BE BOM detection 2026-05-20 18:49:52 -04:00
pages.rs docs(pdftract-49f8): establish Cargo.lock policy and documentation 2026-05-20 18:13:14 -04:00
resources.rs docs(pdftract-49f8): establish Cargo.lock policy and documentation 2026-05-20 18:13:14 -04:00
secrets.rs feat(pdftract-59zz): implement MCP bearer token ingress channels and TH-03 enforcement 2026-05-18 02:47:54 -04:00
stream.rs docs(pdftract-49f8): establish Cargo.lock policy and documentation 2026-05-20 18:13:14 -04:00
xref.rs fix(pdftract-5upi): add parse_obj_header_at_memory for xref forward scan 2026-05-18 02:54:35 -04:00