summaryrefslogtreecommitdiff
path: root/queries/rust/highlights.scm
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-03-11highlights(rust): highlight as in <Struct as Trait>::TypeStephan Seitz
2022-01-16highlights(rust): add "yield" keywordStephan 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-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-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-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 variable and closure parameter highlightsRohit Pradhan
2021-01-20Use function keyword highlight group for Rust's fnCédric Barreteau
2021-01-07started branchBrian Shu
2021-01-04Rust: highlight bracketsSantos Gallegos
2020-10-10fix(highlights): Add TSNamespace highlightStephan Seitz
Start adding highlights for - C++ - Rust (including other scoped_identifier/scoped_type_identifier fixes) - JS (only namespace_import) Addresses #516
2020-09-19Add @keyword.operator for operators that are English words and add ↵Stephan Seitz
@exception for Java/JS
2020-09-06change @meta to @type for derive directives because @meta is not definedkiyan42
2020-08-20Change self back to variable.builtinAvi Dessauer
2020-08-20Deduplicate queries/rust/highlights.scmAvi Dessauer
Co-authored-by: TravonteD <tman1300@aol.com>
2020-08-20Highlight operators + improve consistency with Vim syntaxAvi Dessauer
2020-08-16fix(queries): use vim-match for non lua regexesSteven Sojka
2020-08-07highlights(rust): fix some type highlights.Thomas Vigouroux
2020-08-07highlights(rust): add async/await keywordsThomas Vigouroux
2020-07-08Add Rust queries (#57)Thomas Vigouroux
* queries(rust): add highlight query. Also slightly changes the way constructors are highlighted. * highglight(rust): use new query syntax