tree-sitter-rust icon indicating copy to clipboard operation
tree-sitter-rust copied to clipboard

Rust grammar for tree-sitter

Results 47 tree-sitter-rust issues
Sort by recently updated
recently updated
newest added

Instead of a separate `if_let_expression` construct, we add a `let_condition` node that can be the `condition` field of an `if_expression`. Furthermore, we add a `let_chain` node that can hold any...

The where clause parser can't handle constraints on array types. Minimal example: ``` fn foo(val: D) where [u8; 32]: From, {} ```

It would be great if documentation comments made with `///`, `//!`, etc. were matched to different nodes than normal comments. I'd like to be able treat them separately when doing...

I suspect the main problem with https://github.com/tree-sitter/tree-sitter-rust/pull/99 is what is pointed out in https://github.com/tree-sitter/tree-sitter-rust/pull/99#discussion_r781614623. Here I tried to fix that problem and also add some recursion guard tests just in...

query with + operation did not work to capture more than one node. example code in rust ```rust struct a{c: usize, b: usize} ``` ### what work ? with query...

In the scenario of `super::super`, only the first super is considered a keyword, whereas the second one isnt considered as anything

I've explained everything [on this issue](https://github.com/github/linguist/issues/5985) from github/linguist. The changes happened because "linguist" started to use "tree-sitter-rust" instead of the one they were using before. So, I'm opening the issue...

Not sure about the capabilities of treesitter, but would it be possible to highlight the code in doc comments? e.g.: ```rs /// ```rs /// enum Test { /// /// }...

Add build scripts for wasm binding.

Previously, this parser would discard tokens inside macro invocation. As suggested in https://github.com/tree-sitter/tree-sitter/issues/1156, use a named rule to ensure a token is returned. Closes #119