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
Copy file name to clipboardExpand all lines: .changeset/fix-gritql-positional-args.md
-4Lines changed: 0 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,3 @@
3
3
---
4
4
5
5
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