Herrington Darkholme
hd-nvim.bsky.social
Herrington Darkholme
@hd-nvim.bsky.social
Pinned
🥳🥳🥳
Reposted by Herrington Darkholme
I almost got brain aneurysm thinking that the query syntax of tree-sitter and ast-grep differ.

Fortunately that's not the case, but - contrary to Internet wisdom - query syntax is not compatible between languages (parsers).

Also, ast-grep's Playground is insanely useful:
1/2
November 6, 2025 at 4:16 PM
Reposted by Herrington Darkholme
Excited for the #RustNYC talks Nov. 13!

Herrington Darkholme will present a comprehensive guide to building custom linting tools for #RustLang projects.

Matt Powers will speak about #SedonaDB, a geospatial compute engine that's built on #DataFusion.

Register: www.meetup.com/rust-nyc/eve...
Talks: Custom Rust Linting (ast-grep) & Geospatial DataFrame lib (SedonaDB), Thu, Nov 13, 2025, 6:30 PM | Meetup
Doors open at 6:30 p.m. to give attendees plenty of time to grab pizza and socialize, and the talk begin at 7:30 p.m. **Talk #1: Custom Rust Linting** **Herrington Darkhol
www.meetup.com
November 9, 2025 at 12:36 AM
#ast_grep_trick ast-grep's rule is heavily inspired by CSS selectors. The rule `identifier` node is `inside` the node `call_expression` is something similar to `call_expression > identifier`
July 28, 2025 at 3:19 AM
ast-grep is my personal hobby project, and all user feedback, whether good or bad, is voluntary. I don't request comments from users.
If you see statements that ast-grep's community is attacking others, they are fake rumors, or more precisely, narrative trickery.
July 15, 2025 at 4:55 AM
Reposted by Herrington Darkholme
ast-grep | structural search/rewrite tool for many languages https://ast-grep.github.io/

What on earth!

You can grep-replace parts of your code-base, but instead of string matching, you write AST matching expressions? That's wild.
ast-grep | structural search/rewrite tool for many languages
ast-grep is a fast and polyglot tool for code structural search, lint, rewriting at large scale.
ast-grep.github.io
July 9, 2025 at 5:38 PM
New cheat sheet for ast-grep's YAML configuration ast-grep.github.io/cheatsheet/y...
Config Cheat Sheet | ast-grep
ast-grep(sg) is a lightning fast and user friendly tool for code searching, linting, rewriting at large scale.
ast-grep.github.io
June 30, 2025 at 4:00 AM
ast-grep.el: Emacs meets structural search

www.youtube.com/watch?v=Bdua...
ast-grep.el demonstration
YouTube video by SunskyXH
www.youtube.com
June 27, 2025 at 3:44 PM
letting AI write an ast-grep rule for me.
I'm using cursor, ast-grep mcp tool, custom cursor rule and gemini-2.5pro
June 19, 2025 at 6:15 PM
Reposted by Herrington Darkholme
What should your mutexes be named?
gaultier.github.io
June 10, 2025 at 6:30 AM
ast-grep rule cheat sheet
June 15, 2025 at 1:58 PM
Compare biomejs plugin with ast-grep in one picture: both syntax and speed.
June 4, 2025 at 4:29 PM
One pic to compare ast-grep rule syntax with biome plugin syntax.

The example shows the rule no-implicit-bool-jsx-attr,
e.g. <div draggable /> => <div draggable={true} />
May 29, 2025 at 2:03 PM
A proof of concept to run ast-grep via OXC parser
May 4, 2025 at 9:36 PM
May 4, 2025 at 5:33 PM
Reposted by Herrington Darkholme
just some (probably filthy) vimscript to get ast-grep to run on the current buffer and update it
cc @hd-nvim.bsky.social 👀
ast-grep on current vim buffer
ast-grep on current vim buffer. GitHub Gist: instantly share code, notes, and snippets.
gist.github.com
April 22, 2025 at 4:23 PM
Reposted by Herrington Darkholme
Ohh I didn't see that ast-grep has a VSCode extension nowadays. This tool just keeps getting better. marketplace.visualstudio.com/items/?itemN...
April 18, 2025 at 1:48 PM
Reposted by Herrington Darkholme
ast-grepは自分みたいにソフトウェアのバージョンアップや代替案への移行をよくやるものには必修科目かもしれん
April 2, 2025 at 11:20 PM
Reposted by Herrington Darkholme
🌈 vibe coding 🌈
March 26, 2025 at 12:12 AM
TSLA IS DOWN!
TWTR IS DOWN!
ELON IS DOWN!
March 10, 2025 at 4:52 PM
> No JavaScript developer knows that query language. How do you debug it? How do you test it? etc.

try ast-grep maybe?
February 24, 2025 at 3:32 AM
ast-grep playground now shows the wasm parser version it is using. convenient to debug parser version difference from CLI
February 16, 2025 at 6:28 AM
Learning a tool can be overwhelming, but ast-grep's new UI makes it easier to explore bit by bit.
📊 Better visuals: Show more rule information
🔍 Filter examples: By rules, features, and languages
📈 Sort by complexity: Start with easy rules and explore sophisticated ones
February 13, 2025 at 7:49 PM
February 12, 2025 at 5:04 AM