You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix keywords not recognized as NCNames in QNames (#142)
Token::ncname() only included reserved function names (XPath 3.1 A.3)
but omitted axis names and other keywords. This caused the lexer to fail
combining tokens like `ex:child` into a PrefixedQName, since
Token::Child.ncname() returned None.
Per the spec: "Keywords in XPath 3.1 [...] are not reserved—that is,
names in XPath 3.1 expressions are allowed to be the same as language
keywords."
Add all keyword tokens to Token::ncname() to match what the parser-level
parser_keyword() already handles.
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
0 commit comments