Syntax highlighting and language configuration for the Tree-sitter query language: https://tree-sitter.github.io/tree-sitter/using-parsers#pattern-matching-with-queries
You can also run Tree-Sitter queries against 9 supported languages using the Tree-Sitter Notebook:
- File > New File > Tree-Sitter Notebook
- Add at least one source code cell followed by zero or more Tree-Sitter query cells
- Run all cells to see the parse tree (and query result if any) in cell output