aboutsummaryrefslogtreecommitdiffstats
path: root/queries/rust
Commit message (Collapse)AuthorAgeFilesLines
* fix(rust): highlight SNAKE_CASE scoped identifier name as @constantJaehwang Jung2023-04-091-0/+3
|
* use indent.X syntax for captures and properties of set directivesGeorge Harker2023-03-241-15/+16
| | | | | | | | update CONTRIBUTING.md adjust indents for bass fix doc capture comment
* feat: add `@comment.documentation` where applicableAmaan Qureshi2023-03-051-0/+12
|
* feat!: add `@keyword.coroutine` captureAmaan Qureshi2023-03-031-2/+5
|
* folds(rust): add array_expressionChinmay Dalal2023-01-051-0/+1
|
* highlights(rust): use `@namespace` for `[(crate) (self) (super)]`Stephan Seitz2023-01-011-4/+4
| | | | Fixes https://github.com/nvim-treesitter/nvim-treesitter/issues/3992
* rust: use @type.qualifier and @storageclassTrard2022-11-061-5/+12
|
* highlights(rust): pub(self/super/crate), use super::thing, etcCormac Relf2022-11-061-1/+2
|
* highlights(rust): ["<" ">"] @punctuation.bracket in bracketed_type, ↵Cormac Relf2022-11-061-0/+2
| | | | for_lifetimes
* highlights(rust): "for" @keyword everywhere else (for<'a>, HRTBs)Cormac Relf2022-11-061-2/+1
|
* highlights(rust): highlight Type in Type::Associated as @type instead of ↵Cormac Relf2022-11-061-0/+3
| | | | @namespace
* highlights(rust): panic!() and assert!() as @exceptionCormac Relf2022-11-061-0/+5
|
* fix(rust): update queries to breaking changesChristian Clason2022-11-053-9/+7
| | | | | | | * `if_let_expression` was removed in https://github.com/tree-sitter/tree-sitter-rust/pull/152 * `attributes` were reworked in https://github.com/tree-sitter/tree-sitter-rust/pull/163 (no more `meta-item`)
* highlights(rust): distinguish between "for" in loops and impl_itemStephan Seitz2022-10-151-2/+4
| | | | Fixes #3641
* feat(spell): support more languagesLewis Russell2022-09-261-6/+1
|
* feat(spell): upstream spell queries from spellsitterLewis Russell2022-09-061-0/+5
|
* Split func/method definition from calls in several programming language querieslfenzo2022-08-031-6/+6
|
* fix(rust): remove if_let from indent captureskiyan2022-07-081-1/+0
| | | | fixes https://github.com/nvim-treesitter/nvim-treesitter/issues/3073
* highlights(rust): highlight as in <Struct as Trait>::TypeStephan Seitz2022-03-111-0/+1
|
* fix(indent): rust - support newline after closing braceMunif Tanjim2022-01-211-0/+14
|
* feat: rewrite indent moduleMunif Tanjim2022-01-211-4/+16
|
* highlights(rust): add "yield" keywordStephan Seitz2022-01-161-1/+4
|
* injections(rust): inject regex into `Regex::new`Stephan Seitz2021-12-141-0/+13
|
* rust(highlights): fix highlighting of char_literalStephan Seitz2021-12-061-1/+1
|
* highlights(rust): organize keywords and literalsSergio Alejandro Vargas2021-11-251-59/+70
| | | | | | | | | - sort keywords - highlight super as a namespace (same as crate) - highlight `break` and `continue` as `repeat` keywords - don't highlight `macro_rules!` as a keyword - place all literal queries together - place function definition queries alongside function call queries
* highlights(rust): update operatorsSergio Alejandro Vargas2021-11-251-68/+48
| | | | | | | | | | | | - sort operators - remove duplicated `*` - add missing `<<=` - highlight `as` correctly in path aliasing - highlight leading quote `'` as part of a label (not an operator) - highlight never type `!` as a type - sort and format punctuation
* Prefer lua-match over matchLewis Russell2021-11-231-10/+10
| | | | as string.find is much quicker than vim.regex:match*
* Rust: highlight uppercase identifiers in match arms as constant (#1940)Santos Gallegos2021-10-301-0/+15
| | | | | | | * Rust: highlight uppercase identifiers in match arms as constant Closes https://github.com/nvim-treesitter/nvim-treesitter/issues/1928 * Highlight builtins
* Rust: highlight loop labelsSantos Gallegos2021-10-011-0/+1
| | | | Closes https://github.com/nvim-treesitter/nvim-treesitter/issues/1891
* Rust: fix some highlightsSantos Gallegos2021-10-011-3/+6
| | | | Closes https://github.com/nvim-treesitter/nvim-treesitter/issues/1856
* highlights(rust): Add colon `:` to delimitersSergio Alejandro Vargas2021-09-261-1/+1
|
* highlights(rust): fix bang `!` in macro_invocationSergio Alejandro Vargas2021-09-261-0/+1
|
* highlights(rust): Fix angle brackets, and closuresSergio Alejandro Vargas2021-09-261-27/+28
| | | | | Highlight angle brackets in type parameters and bars in closures bars as `@punctuation.bracket` not as `@operator`.
* folds(rust): Fold trait definitions (#1582)agarof2021-07-181-0/+1
|
* highlights(rust): Reorder macro queriesSergio Alejandro Vargas2021-07-081-6/+10
| | | | | | | Derive macros have to be defined before attribute macros to highlight them properly. See #570
* feat(keywords) merge return and yield into keyword.return groupantonk522021-07-041-3/+1
|
* feat(keywords) add keyword.return & keyword.yieldantonk522021-07-041-1/+4
|
* rust: inject html to html! macrotami52021-06-211-0/+9
|
* Rust: fix macros highlightsSantos Gallegos2021-06-111-7/+10
| | | | | | - The derive query was incorrect, it was only matching `#[derive(derive)]` - Macros were being highlighted as keywords - Procedural macros symbols weren't highlighted (`#`, `#!`)
* highlights(rust): highlight fields with shorthand_field_initializerStephan Seitz2021-05-241-0/+2
|
* Rust: highlight constantsSantos Gallegos2021-05-221-1/+3
|
* Revert "Comment: use `@combined` to create just one tree per buffer (#1252)"Santos Gallegos2021-05-071-1/+1
| | | | This reverts commit 4a7a713c527f57c355bc817f16fc6d955b8cce9b.
* Comment: use `@combined` to create just one tree per buffer (#1252)Santos Gallegos2021-04-281-1/+1
| | | | | | | | | | | | * Comment: use `@combined` to create just one tree per buffer There is no need to create a tree per line/block for comments. Should fix https://github.com/nvim-treesitter/nvim-treesitter/issues/1251 * Add injections for scss * Fix jsonc * Combine jsdoc
* highlights(rust): Add operator "?"Stephan Seitz2021-04-061-0/+1
|
* highlights(rust): Highlight dereferenced closure parametersStephan Seitz2021-03-261-1/+1
|
* rust: tread `,` as a punctuation delimiterYuki Ito2021-03-221-0/+1
|
* Rust: add mod_item to foldsSantos Gallegos2021-03-151-3/+3
|
* Rust: Add variable and closure parameter highlightsRohit Pradhan2021-03-151-0/+2
|
* Add comment parser to highlight comment tags (#893)Santos Gallegos2021-03-121-0/+5
| | | Closes #236
* fixed rust match indentsBrian Shu2021-03-011-0/+1
|