A Tree-sitter grammar for the Tauraro programming language.
This repository provides parsing for Tauraro, and features like code navigation, and structural editing in editors like Helix, Neovim, and Emacs. With highlight, indent and text-object queries.
Helix makes it incredibly easy to use custom Tree-sitter grammars. To add Tauraro support to your local Helix editor, follow these steps:
Open your Helix configuration file (usually located at ~/.config/helix/languages.toml or ~/.config/helix/config.toml depending on your OS) and add the following configuration:
[[language]]
name = "tauraro"
scope = "source.tauraro"
injection-regex = "tauraro"
file-types = ["tr", "tau", "tauraro"]
comment-token = "#"
indent = { tab-width = 4, unit = " " }
[[grammar]]
name = "tauraro"
source = { git = "https://github.com/dev-safe/tree-sitter-tauraro", rev = "main" }For Helix to know how to highlight and format the code, it needs the query files.
- Create a directory for Tauraro queries in your Helix runtime folder:
mkdir -p ~/.config/helix/runtime/queries/tauraro - Copy the
.scmfiles from thequeries/folder in this repository (highlights.scm,indents.scm,locals.scm, andtextobjects.scm) into that new directory.