File tree Expand file tree Collapse file tree 1 file changed +8
-19
lines changed Expand file tree Collapse file tree 1 file changed +8
-19
lines changed Original file line number Diff line number Diff line change 11# tree-sitter-taskr
2- This is the tree-sitter parser for [ taskr] ( https://github.com/arne-vl/taskr ) . Currently only provides highlighting.
32
4- ## Manual configuration
5- 1 . Put this snippet in your nvim-treesiter configuration.
6- ``` lua
7- local parser_config = require (" nvim-treesitter.parsers" ).get_parser_configs ()
8- parser_config .taskr = {
9- install_info = {
10- url = " https://github.com/arne-vl/tree-sitter-taskr" ,
11- files = { " src/parser.c" },
12- branch = " main" ,
13- generate_requires_npm = true ,
14- requires_generate_from_grammar = true ,
15- },
16- filetype = " taskrfile" ,
17- }
18- ```
3+ A [ Tree-sitter] ( https://tree-sitter.github.io/tree-sitter/ ) grammar for the [ taskr] ( https://github.com/arne-vl/taskr ) configuration language.
4+
5+ This parser enables syntax highlighting for the ` taskrfile ` filetype in editors and tools that support Tree-sitter.
6+
7+ ## ✨ Features
8+ - Full grammar for Taskr syntax
9+ - Incremental parsing for fast editor feedback
10+ - Can be integrated with editors, syntax highlighters, and static analysis tools
1911
20- 2 . Restart ` nvim ` and install the parser using ` :TSInstall taskr `
21- 3 . Copy the contents of ` queries/taskr/highlights.scm ` into ` ~/.config/nvim/queries/taskr/highlights.scm `
22- 4 . Restart ` nvim ` .
You can’t perform that action at this time.
0 commit comments