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> |
||
|---|---|---|
| .. | ||
| pdftract-cer-diff | ||
| pdftract-cli | ||
| pdftract-core | ||
| pdftract-py | ||