aboutsummaryrefslogtreecommitdiffstats
path: root/queries/rust
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* feat: use @ignore for comments and multiline stringselianiva2021-03-011-0/+5
|
* fix: rust use_list + tuple_expression indentelianiva2021-02-081-0/+2
|
* Use function keyword highlight group for Rust's fnCédric Barreteau2021-01-201-1/+2
|
* feat: added more indent querieselianiva2021-01-141-0/+26
|
* started branchBrian Shu2021-01-073-0/+35
|
* Rust: highlight bracketsSantos Gallegos2021-01-041-6/+8
|
* fix(highlights): Add TSNamespace highlightStephan Seitz2020-10-101-5/+31
| | | | | | | | | Start adding highlights for - C++ - Rust (including other scoped_identifier/scoped_type_identifier fixes) - JS (only namespace_import) Addresses #516
* Remove textobjects moduleStephan Seitz2020-10-041-73/+0
|
* Add @keyword.operator for operators that are English words and add ↵Stephan Seitz2020-09-191-1/+4
| | | | @exception for Java/JS
* change @meta to @type for derive directives because @meta is not definedkiyan422020-09-061-2/+2
|
* Change self back to variable.builtinAvi Dessauer2020-08-201-1/+1
|
* Deduplicate queries/rust/highlights.scmAvi Dessauer2020-08-201-1/+0
| | | Co-authored-by: TravonteD <tman1300@aol.com>
* Highlight operators + improve consistency with Vim syntaxAvi Dessauer2020-08-201-3/+37
|