再生花

Results 10 issues of 再生花

Problem: - `Query:iter_captures` metadata is reset after each capture iteration instead of each match iteration - Treesitter conceal does not consider the case of conceal being set through `#set! @capture...

treesitter

### Problem Originally found in nvim-treesitter/nvim-treesitter#5736, I think it's better to report here as well. Using injection.combined seems to be inconsistent with certain languages. ### Steps to reproduce - `minimal_init.lua`:...

bug
treesitter

### Problem Doing the test with a json file, I find the returned result of `TSNode:descendant_for_range` doesn't actually reflect the node to cover for that range, or the documentation isn't...

bug
documentation
treesitter

In tree-sitter, the only use case I see for `#set!` is to set language for an injection capture, while in neovim, this is used for other random, miscellaneous stuffs, such...

documentation
query

Having a js file of: ```javascript const foo = [ 1, 2, 3 ] const foo = { bar: 1, baz: [ 1, 2, 3 ] } ``` I tried...

bug
query

Now that neovim have fixed quantifier issues, we can add this back

### Describe the bug Like the title describe ### To Reproduce 1. Create a `test.html` file with the following code ```html ``` 3. On line 2, press `o` ### Expected...

indent

### Problem Having a predicate with enough strings breaks the tree. This doesn't happen with https://github.com/tree-sitter-grammars/tree-sitter-query so I believe the problem lies here. ### Steps to reproduce nvim --clean :edit...

bug
treesitter

### Problem After #24738 is merged, the behavior for all directives bar `#set!` is to only trigger if the capture is 1 node only. I believe there can be improvements...

enhancement
treesitter

My motivation comes from nvim-treesitter/nvim-treesitter#5127, where I want to inject C highlights for go, but there isn't a way to do it without making the editing experience miserable Sometimes, there...

question
query