This repository contains the Tree-sitter grammar for the Ignis programming language. Tree-sitter is a high-performance parser used for syntax highlighting and other functionality in text editors and development tools.
- Fast and accurate syntax highlighting for Ignis.
- Can be integrated into text editors that support Tree-sitter.
To use this Tree-sitter grammar with Neovim:
local parser_config = require("nvim-treesitter.parsers").get_parser_configs()
parser_config["ignis"] = {
install_info = {
url = "https://github.com/Ignis-lang/tree-sitter-ignis.git",
files = { "src/parser.c" },
branch = "main",
generate_requires_npm = false,
requires_generate_from_grammar = true,
},
filetype = "ign",
}And then run :TSUpdate or :TSInstall ignis in Neovim.
After installing the grammar in your editor, Ignis files should automatically start benefiting from syntax highlighting and other features provided by Tree-sitter.
The body of an asm block is injected as the asm language, so its
instructions are highlighted only when a Tree-sitter asm parser is installed
(for Neovim, :TSInstall asm). Holes such as {value}, escaped braces and
comments inside the body are excluded from the injection and stay Ignis.
Contributions are welcome! If you encounter any problems or have suggestions for improvement, please open an issue or send a pull request.
MIT © Ignacio Perez