Skip to content

Commit 62c887d

Browse files
committed
chore: add changeset
1 parent 7a2508b commit 62c887d

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.changeset/fruity-towns-repair.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
---
2+
"@biomejs/biome": patch
3+
---
4+
5+
Implements #7339. GritQL patterns can now use native Biome AST nodes using their `PascalCase` names, in addition to the existing TreeSitter-compatible `snake_case` names.
6+
7+
```grit
8+
engine biome(1.0)
9+
language js(typescript,jsx)
10+
11+
or {
12+
// TreeSitter-compatible pattern
13+
if_statement(),
14+
15+
// Native Biome AST node pattern
16+
JsIfStatement()
17+
} as $stmt where {
18+
register_diagnostic(
19+
span=$stmt,
20+
message="Found an if statement"
21+
)
22+
}
23+
```

0 commit comments

Comments
 (0)