Skip to content

Commit 88adfe1

Browse files
authored
Update .changeset/fix-gritql-positional-args.md
1 parent 7de0f51 commit 88adfe1

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

.changeset/fix-gritql-positional-args.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,3 @@
33
---
44

55
Fixed a bug where GritQL patterns rejected positional (unkeyed) arguments.
6-
7-
The GritQL spec explicitly allows omitting parameter names when arguments are passed in order, but Biome was rejecting anything other than named arguments (e.g., `console_method_to_info(`log`)` would fail while `console_method_to_info(method = `log`)` worked).
8-
9-
The fix operates at two layers: the parser now correctly distinguishes a positional pattern from a named argument using lookahead, and the pattern compiler now resolves non-variable positional arguments by position instead of rejecting them outright. This applies to user-defined patterns, functions, predicates, and AST node patterns.

0 commit comments

Comments
 (0)