summaryrefslogtreecommitdiff
path: root/queries/rust
AgeCommit message (Collapse)Author
2022-11-06rust: use @type.qualifier and @storageclassTrard
2022-11-06highlights(rust): pub(self/super/crate), use super::thing, etcCormac Relf
2022-11-06highlights(rust): ["<" ">"] @punctuation.bracket in bracketed_type, ↵Cormac Relf
for_lifetimes
2022-11-06highlights(rust): "for" @keyword everywhere else (for<'a>, HRTBs)Cormac Relf
2022-11-06highlights(rust): highlight Type in Type::Associated as @type instead of ↵Cormac Relf
@namespace
2022-11-06highlights(rust): panic!() and assert!() as @exceptionCormac Relf
2022-11-05fix(rust): update queries to breaking changesChristian Clason
* `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`)
2022-10-15highlights(rust): distinguish between "for" in loops and impl_itemStephan Seitz
Fixes #3641
2022-09-26feat(spell): support more languagesLewis Russell
2022-09-06feat(spell): upstream spell queries from spellsitterLewis Russell
2022-08-03Split func/method definition from calls in several programming language querieslfenzo
2022-07-08fix(rust): remove if_let from indent captureskiyan
fixes https://github.com/nvim-treesitter/nvim-treesitter/issues/3073
2022-03-11highlights(rust): highlight as in <Struct as Trait>::TypeStephan Seitz
2022-01-21fix(indent): rust - support newline after closing braceMunif Tanjim
2022-01-21feat: rewrite indent moduleMunif Tanjim
2022-01-16highlights(rust): add "yield" keywordStephan Seitz
2021-12-14injections(rust): inject regex into `Regex::new`Stephan Seitz
2021-12-06rust(highlights): fix highlighting of char_literalStephan Seitz
2021-11-25highlights(rust): organize keywords and literalsSergio Alejandro Vargas
- 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
2021-11-25highlights(rust): update operatorsSergio Alejandro Vargas
- 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
2021-11-23Prefer lua-match over matchLewis Russell
as string.find is much quicker than vim.regex:match*
2021-10-30Rust: highlight uppercase identifiers in match arms as constant (#1940)Santos Gallegos
* Rust: highlight uppercase identifiers in match arms as constant Closes https://github.com/nvim-treesitter/nvim-treesitter/issues/1928 * Highlight builtins
2021-10-01Rust: highlight loop labelsSantos Gallegos
Closes https://github.com/nvim-treesitter/nvim-treesitter/issues/1891
2021-10-01Rust: fix some highlightsSantos Gallegos
Closes https://github.com/nvim-treesitter/nvim-treesitter/issues/1856
2021-09-26highlights(rust): Add colon `:` to delimitersSergio Alejandro Vargas
2021-09-26highlights(rust): fix bang `!` in macro_invocationSergio Alejandro Vargas
2021-09-26highlights(rust): Fix angle brackets, and closuresSergio Alejandro Vargas
Highlight angle brackets in type parameters and bars in closures bars as `@punctuation.bracket` not as `@operator`.
2021-07-18folds(rust): Fold trait definitions (#1582)agarof
2021-07-08highlights(rust): Reorder macro queriesSergio Alejandro Vargas
Derive macros have to be defined before attribute macros to highlight them properly. See #570
2021-07-04feat(keywords) merge return and yield into keyword.return groupantonk52
2021-07-04feat(keywords) add keyword.return & keyword.yieldantonk52
2021-06-21rust: inject html to html! macrotami5
2021-06-11Rust: fix macros highlightsSantos Gallegos
- The derive query was incorrect, it was only matching `#[derive(derive)]` - Macros were being highlighted as keywords - Procedural macros symbols weren't highlighted (`#`, `#!`)
2021-05-24highlights(rust): highlight fields with shorthand_field_initializerStephan Seitz
2021-05-22Rust: highlight constantsSantos Gallegos
2021-05-07Revert "Comment: use `@combined` to create just one tree per buffer (#1252)"Santos Gallegos
This reverts commit 4a7a713c527f57c355bc817f16fc6d955b8cce9b.
2021-04-28Comment: use `@combined` to create just one tree per buffer (#1252)Santos Gallegos
* 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
2021-04-06highlights(rust): Add operator "?"Stephan Seitz
2021-03-26highlights(rust): Highlight dereferenced closure parametersStephan Seitz
2021-03-22rust: tread `,` as a punctuation delimiterYuki Ito
2021-03-15Rust: add mod_item to foldsSantos Gallegos
2021-03-15Rust: Add variable and closure parameter highlightsRohit Pradhan
2021-03-12Add comment parser to highlight comment tags (#893)Santos Gallegos
Closes #236
2021-03-01fixed rust match indentsBrian Shu
2021-03-01feat: use @ignore for comments and multiline stringselianiva
2021-02-08fix: rust use_list + tuple_expression indentelianiva
2021-01-20Use function keyword highlight group for Rust's fnCédric Barreteau
2021-01-14feat: added more indent querieselianiva
2021-01-07started branchBrian Shu
2021-01-04Rust: highlight bracketsSantos Gallegos