mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-14 09:20:04 -04:00
See https://github.com/NLnetLabs/tree-sitter-roto for the parser repo. This only works if the filetype for Roto is added explicitly: ```lua vim.filetype.add({ extension = { roto = "roto" } }) ``` After that the queries seem to work well when testing it on all the example Roto scripts from https://github.com/NLnetLabs/roto/tree/main/examples. I have a [PR to Vim](https://github.com/vim/vim/pull/19195) aiming to add `.roto` as a recognized extension for a `roto` filetype. Once there, NeoVim should eventually pull it in and users will not need to add the filetype themselves.
17 lines
256 B
Scheme
17 lines
256 B
Scheme
[
|
|
(function_item)
|
|
(filtermap_item)
|
|
(test_item)
|
|
(block)
|
|
] @local.scope
|
|
|
|
(let_statement
|
|
(identifier) @local.definition)
|
|
|
|
(parameter
|
|
(identifier) @local.definition)
|
|
|
|
(for_expression
|
|
(identifier) @local.definition)
|
|
|
|
(identifier) @local.reference
|