Tree-sitter grammar for the Grayscale programming language.
This grammar is used by GrayLS for syntax highlighting in Zed.
npm install -g tree-sitter-cli-
Edit
grammar.jsto add/modify syntax rules -
Regenerate the parser:
tree-sitter generate
-
Test parsing (optional):
tree-sitter parse path/to/file.gray
-
Commit and push:
git add -A git commit -m "feat: description of change" git push -
Update GrayLS with the new commit SHA
| File | Purpose |
|---|---|
grammar.js |
Grammar definition (edit this) |
src/parser.c |
Generated parser (don't edit) |
src/node-types.json |
Generated node types (don't edit) |
- Grayscale Programming Language
- GrayLS - Language server using this grammar