Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tree-sitter-grammars/tree-sitter-test
TS corpus test grammar for tree-sitter
https://github.com/tree-sitter-grammars/tree-sitter-test
neovim neovim-plugin parser test tree-sitter
Last synced: 4 months ago
JSON representation
TS corpus test grammar for tree-sitter
- Host: GitHub
- URL: https://github.com/tree-sitter-grammars/tree-sitter-test
- Owner: tree-sitter-grammars
- License: mit
- Created: 2024-03-03T18:30:39.000Z (11 months ago)
- Default Branch: master
- Last Pushed: 2024-08-05T05:35:59.000Z (6 months ago)
- Last Synced: 2024-09-27T10:40:13.280Z (4 months ago)
- Topics: neovim, neovim-plugin, parser, test, tree-sitter
- Language: Lua
- Homepage:
- Size: 53.7 KB
- Stars: 3
- Watchers: 5
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# tree-sitter-test
[![CI][ci]](https://github.com/tree-sitter-grammars/tree-sitter-test/actions/workflows/ci.yml)
[![discord][discord]](https://discord.gg/w7nTvsVJhm)
[![matrix][matrix]](https://matrix.to/#/#tree-sitter-chat:matrix.org)A tree-sitter parser for corpus test files.
## References
- [Command: test](https://tree-sitter.github.io/tree-sitter/creating-parsers#command-test)
- [Constant `std::env::consts::OS`](https://doc.rust-lang.org/std/env/consts/constant.OS.html)## Usage
This can be used as a standalone plugin in Neovim, without nvim-treesitter.
Here's how you can install it using [lazy.nvim](https://github.com/folke/lazy.nvim):```lua
{
"tree-sitter-grammars/tree-sitter-test",
-- compile on your own on Windows
build = "make 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
}
```[ci]: https://img.shields.io/github/actions/workflow/status/tree-sitter-grammars/tree-sitter-test/ci.yml?logo=github&label=CI
[discord]: https://img.shields.io/discord/1063097320771698699?logo=discord&label=discord
[matrix]: https://img.shields.io/matrix/tree-sitter-chat%3Amatrix.org?logo=matrix&label=matrix
[npm]: https://img.shields.io/npm/v/tree-sitter-test?logo=npm
[crates]: https://img.shields.io/crates/v/tree-sitter-test?logo=rust
[pypi]: https://img.shields.io/pypi/v/tree-sitter-test?logo=pypi&logoColor=ffd242