This repo now includes starter scaffolds for both Cursor/VS Code and Neovim paths.
Path: tools/cursor-anascript-syntax
- Language id:
anascript - File extension:
.ana - Grammar:
syntaxes/anascript.tmLanguage.json
Install locally by packaging the extension (vsce package) and installing the VSIX in Cursor.
Path: tools/tree-sitter-anascript
- Grammar entry:
grammar.js - Highlights query:
queries/highlights.scm
Use tree-sitter generate to produce parser artifacts, then wire parser + queries in Neovim.
- Align Tree-sitter grammar rules more closely with
src/grammar.ebnf. - Add grammar fixtures/tests for edge cases (
label, spreads, negative sets, escaped symbols). - Keep token naming between TextMate and Tree-sitter reasonably consistent for theme quality.