tree-sitter-rush 0.1.0

rush grammar for the tree-sitter parsing library
Documentation
  • Coverage
  • 100%
    3 out of 3 items documented1 out of 2 items with examples
  • Size
  • Source code size: 400.95 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 152.06 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 18s Average build duration of successful builds.
  • all releases: 12s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • rush-rs/tree-sitter-rush
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • RubixDev

tree-sitter-rush

rush grammar for tree-sitter

Usage in Neovim

Parser Installation

The nvim-treesitter plugin does not include this parser. To use it you must instead manually add it to your tree-sitter config and then install it with :TSInstall rush or by adding it to your ensure_installed list:

require('nvim-treesitter.parsers').get_parser_configs().rush = {
    install_info = {
        url = 'https://github.com/rush-rs/tree-sitter-rush.git',
        files = { 'src/parser.c' },
        branch = 'main',
    },
}

File type detection

You will likely also have to add the rush file type:

vim.filetype.add { extension = { rush = 'rush' } }

Highlighting and Indentation

If you want to use this parser for highlighting and indentation, you will also have to add this repository as a plugin, for example for packer.nvim add this:

use { 'rush-rs/tree-sitter-rush' }