buherator on Nostr: I almost got brain aneurysm thinking that the query syntax of tree-sitter and ...
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:
https://ast-grep.github.io/playground.htmlPublished at
2025-11-06 16:12:51 UTCEvent JSON
{
"id": "aa2ac9cbea1002e054251d51d4a17380c523aeb926f074835852fa7c256e1a35",
"pubkey": "f39833f08e0f05972be0604735d51ec700fb118d49d02a79bf6447093138c8e2",
"created_at": 1762445571,
"kind": 1,
"tags": [
[
"proxy",
"https://infosec.place/objects/858a05c1-6699-46fe-b1b5-e578fba9c350",
"activitypub"
],
[
"L",
"pink.momostr"
],
[
"l",
"pink.momostr.activitypub:https://infosec.place/objects/858a05c1-6699-46fe-b1b5-e578fba9c350",
"pink.momostr"
],
[
"-"
]
],
"content": "I almost got brain aneurysm thinking that the query syntax of tree-sitter and ast-grep differ. \r\n\r\nFortunately that's not the case, but - contrary to Internet wisdom - query syntax is not compatible between languages (parsers). \r\n\r\nAlso, ast-grep's Playground is insanely useful:\r\n\r\nhttps://ast-grep.github.io/playground.html",
"sig": "064849ce8e88162d13ff90201654ab2eefbebc3878bdec1dd005fd8318d91bbcd4652b4e86251a0cbba4c7b41dcd2ab44796da5de19c0285b8e913ee273dad0e"
}