#rush #parser #incremental

tree-sitter-rush

rush grammar for the tree-sitter parsing library

1 unstable release

0.1.0 Jul 6, 2023

#483 in Text editors

Download history 18/week @ 2024-03-11 12/week @ 2024-03-18 33/week @ 2024-04-01 38/week @ 2024-04-15 1/week @ 2024-04-22 5/week @ 2024-05-27 4/week @ 2024-06-03 66/week @ 2024-06-10 18/week @ 2024-06-24

88 downloads per month
Used in syntastica-parsers

MIT license

315KB
13K SLoC

C 12K SLoC JavaScript 264 SLoC Scheme 87 SLoC // 0.1% comments Rust 31 SLoC // 0.5% comments

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' }

Dependencies

~2.8–4MB
~72K SLoC