aboutsummaryrefslogtreecommitdiff
path: root/runtime/queries/rust/highlights.scm
Commit message (Collapse)AuthorAge
* Update tree-sitter-schemeBlaž Hrastnik2022-12-12
|
* fix: Outdated Rust queries after TS updateAlexis (Poliorcetics) Bourget2022-11-12
| | | | Ref: https://github.com/tree-sitter/tree-sitter-rust/commit/3ddebf46e6fe5e27fa03dc07a829a766b9979c8d
* [rust highlights] fix scoped attribute macro matching (#4659)Anton Romanov2022-11-08
| | | | | | | Without this scoped attribute macros are not matched as macros. Eg ``` #[path::macro] ```
* feat: Categorize Rust's keywords using more specific scopes (#4510)Poliorcetics2022-10-29
|
* rust: Highlight function signatures as functions (#4073)Michael Davis2022-10-03
| | | | | | | | | | | This stanza highlights functions within trait definitions. For example, in: pub trait Widget { fn render(self, area: Rect, buf: &mut Buffer); } `render` is currently highlighted as a variable. With this change it's highlighted as a function.
* Fix highlighting on single-character Rust consts (#3927)gavincrawford2022-09-21
| | | | Co-authored-by: Kirawi <67773714+kirawi@users.noreply.github.com> Co-authored-by: Gavin Crawford <gavincrawford@users.noreply.github.com>
* Fix Rust attribute highlights (#3729)Michael Davis2022-09-07
|
* Update tree-sitter-rust to latestMichael Davis2022-08-31
| | | | | | There don't appear to be any regressions from the updates. Also included is a fix which highlights the "#" as in attributes as punctuation. This was previously unhighlighted.
* highlight closure pipes as brackets (#3397)Vince Mutolo2022-08-12
| | | Co-authored-by: Vince Mutolo <vince@mutolo.org>
* rust: fix highlight corner-casesMichael Davis2022-07-01
| | | | | | | | | * add punctuation highlights for commas as in function parameters * remove stray `variable.parameter` highlight * I couldn't find any regressions from this and it fixes an edge case I ran into (but sadly did not record 😓) * highlight `fn` as `keyword.function` * the theme docs have `fn` as an example so it seems fitting
* Add "<<=" operator to Rust syntax highlighting (#2805)A-Walrus2022-06-18
|
* Introduce storage_class highlight scope (#2731)Anton Romanov2022-06-14
|
* Add precise rust queries for use, mod, as (#1339)Gokul Soumya2021-12-23
| | | | | | - Differentiates between `as` keyword as a binary type cast operator and import renamer. - `mod` and `use` are now under `@keyword.control.import`, but `mod` is a `@keyword` if used as `mod name;`.
* Improve rust syntax highlighting (#1295)Gokul Soumya2021-12-20
| | | | | - Highlight fragment specifiers (expr, tt, in macro definitions) with @type. - Highlight attributes as macros
* Updated tree-sitter query scopes (#896)Kirawi2021-11-03
| | | | | | | | | | | | | | | | | | * updated theme scopes variable.property -> variable.field property -> variable.field * updated theme scopes * update book and themes updated book and themes to reflect scope changes * wip * update more queries * update dark_plus.toml
* Improve docs, fix up a few highlight scopesBlaž Hrastnik2021-09-07
|
* Improve grammar definitionsBlaž Hrastnik2021-09-06
|
* gruvbox theme changes (#594)oberblastmeister2021-08-18
| | | | | | | | | * changed some gruvbox highlights * more stuff including cursors * use property instead * use variable.property
* Rewritten Rust `highlights.scm` (#425)Kirawi2021-07-08
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * rewrote Rust highlights.scm * wip * wip * wip * wip * fixed type highlighting * wip * rewrite again * moved operators * missing newline * missing newline * update book * fix constructor highlighting * fix constructor highlighting * fix const highlighting * better constructor highlighting * remove dup, bug was my locals.scm file * fixed docs * merge * fixed for highlighting * add yield * remove yield * added yield back * fixed yield highlighting * unecessary
* VSCode Dark+ Theme (#414)Kirawi2021-07-08
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * wip * Add VSCode Dark+ Theme wip wip wip wip wip wip properly detect constants add bool wip * suggestion * add variant for c/c++ * fix hexcode error * removed regex highlight * fixed constant higlighting * wip * add space * add suggestions * update theme * update book * suggestions * fix c/c++ enum * update book
* Rust: Highlight crate namespace, categorize `mut`notoria2021-06-04
|
* Rust: Add keyword `async`, match the entire macronotoria2021-06-04
|
* Adjust highlighting for rust.Blaž Hrastnik2021-05-16
|
* Highlight metavariables ($var) inside rust macros.Blaž Hrastnik2021-04-14
|
* Rust: Highlight 'crate' as a keyword.Blaž Hrastnik2021-04-13
|
* queries: rust: highlight number constants correctly.Blaž Hrastnik2021-04-08
|
* Import tree sitter queries.Blaž Hrastnik2021-04-08