Skip to content

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

92 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tree-sitter Ignis

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.

Features

  • Fast and accurate syntax highlighting for Ignis.
  • Can be integrated into text editors that support Tree-sitter.

Installation

Neovim

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.

Usage

After installing the grammar in your editor, Ignis files should automatically start benefiting from syntax highlighting and other features provided by Tree-sitter.

Inline assembly

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.

Contribute

Contributions are welcome! If you encounter any problems or have suggestions for improvement, please open an issue or send a pull request.

License

MIT © Ignacio Perez

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages