Michael Davis
301f5d7cf7
Fix Rust attribute highlights ( #3729 )
2022-09-07 12:45:51 +09:00
Michael Davis
03f0ef93ac
Update tree-sitter-rust to latest
...
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.
2022-08-31 17:46:34 +09:00
Vince Mutolo
7559b77d53
highlight closure pipes as brackets ( #3397 )
...
Co-authored-by: Vince Mutolo <vince@mutolo.org>
2022-08-11 19:00:03 -05:00
Michael Davis
78c944ebc3
rust: fix highlight corner-cases
...
* 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
2022-07-01 11:04:23 +02:00
A-Walrus
ad15e7b5e8
Add "<<=" operator to Rust syntax highlighting ( #2805 )
2022-06-18 11:44:21 -05:00
Anton Romanov
7983c71752
Introduce storage_class highlight scope ( #2731 )
2022-06-14 12:35:36 -05:00
Gokul Soumya
a8618cf111
Add precise rust queries for use, mod, as ( #1339 )
...
- 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;`.
2021-12-23 12:10:24 +09:00
Gokul Soumya
f1c634326b
Improve rust syntax highlighting ( #1295 )
...
- Highlight fragment specifiers (expr, tt, in macro
definitions) with @type.
- Highlight attributes as macros
2021-12-20 11:47:40 +09:00
Kirawi
ee889aaa85
Updated tree-sitter query scopes ( #896 )
...
* 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
2021-11-03 12:00:52 +09:00
Blaž Hrastnik
4cc562318a
Improve docs, fix up a few highlight scopes
2021-09-07 13:03:48 +09:00
Blaž Hrastnik
a6108baec9
Improve grammar definitions
2021-09-06 15:25:46 +09:00
oberblastmeister
098b6b6eed
gruvbox theme changes ( #594 )
...
* changed some gruvbox highlights
* more stuff including cursors
* use property instead
* use variable.property
2021-08-19 01:02:15 +09:00
Kirawi
084a8a9522
Rewritten Rust highlights.scm
( #425 )
...
* 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
2021-07-09 01:11:20 +09:00
Kirawi
c7aa7bf4ba
VSCode Dark+ Theme ( #414 )
...
* 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
2021-07-08 09:51:46 +09:00
notoria
f3a243c6cb
Rust: Highlight crate namespace, categorize mut
2021-06-04 23:16:33 +09:00
notoria
b2b2d430ae
Rust: Add keyword async
, match the entire macro
2021-06-04 10:57:17 +09:00
Blaž Hrastnik
6e03019a2c
Adjust highlighting for rust.
2021-05-16 18:58:27 +09:00
Blaž Hrastnik
305a059f58
Highlight metavariables ($var) inside rust macros.
2021-04-14 17:16:45 +09:00
Blaž Hrastnik
dfb1ae2d33
Rust: Highlight 'crate' as a keyword.
2021-04-13 17:06:35 +09:00
Blaž Hrastnik
61872de6c0
queries: rust: highlight number constants correctly.
2021-04-08 23:25:54 +09:00
Blaž Hrastnik
71c06c11cb
Import tree sitter queries.
2021-04-08 23:25:35 +09:00