Skip to content

Refactor lexing logic for less than operator#1

Merged
eileenaaa merged 1 commit intoeileenaaa:fix/dql-lexer-iri-ref-regressionfrom
gooohgb:patch-1
Mar 24, 2026
Merged

Refactor lexing logic for less than operator#1
eileenaaa merged 1 commit intoeileenaaa:fix/dql-lexer-iri-ref-regressionfrom
gooohgb:patch-1

Conversation

@gooohgb
Copy link

@gooohgb gooohgb commented Mar 24, 2026

Would it be better to use l.Backup() here instead?Since the responsibility of lexIdentifyMutationOrQuery is just to determine the operation type, encountering < already confirms it's a query. By backing up the pointer and transitioning directly to lexQuery, we let the existing logic inside lexQuery handle the actual lexIRIRef parsing.

@eileenaaa eileenaaa merged commit 890ae81 into eileenaaa:fix/dql-lexer-iri-ref-regression Mar 24, 2026
@gooohgb gooohgb deleted the patch-1 branch March 24, 2026 06:14
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.

2 participants