1 unstable release

0.1.0 Nov 18, 2024

#2553 in Parser implementations

Download history 123/week @ 2024-11-15 22/week @ 2024-11-22 10/week @ 2024-11-29 14/week @ 2024-12-06

169 downloads per month

MIT license

57KB
1.5K SLoC

C 1.5K SLoC JavaScript 65 SLoC // 0.0% comments Scheme 53 SLoC Rust 32 SLoC

tree-sitter-test

CI discord matrix npm crates pypi

A tree-sitter parser for corpus test files.

References

Usage

This can be used as a standalone plugin in Neovim, without nvim-treesitter.
Here's how you can install it using lazy.nvim:

{
    "tree-sitter-grammars/tree-sitter-test",
    build = "mkdir parser && tree-sitter build -o parser/test.so",
    ft = "test",
    init = function()
        -- toggle full-width rules for test separators
        vim.g.tstest_fullwidth_rules = false
        -- set the highlight group of the rules
        vim.g.tstest_rule_hlgroup = "FoldColumn"
    end
}

Dependencies

~4–305KB