Blaž Hrastnik
29cefa1be8
rust: Indent multi line call expressions one level deeper
2021-07-26 11:19:33 +09:00
Blaž Hrastnik
f24007b30f
Improve rust indentation queries
...
if/if let are already handled by block, and keeping these scopes would
indent else blocks one level too far.
2021-07-26 11:19:33 +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
67b037050f
Adjust rust indents
2021-05-30 17:13:32 +09:00
Blaž Hrastnik
6e03019a2c
Adjust highlighting for rust.
2021-05-16 18:58:27 +09:00
Blaž Hrastnik
4a9d1163e0
Hacky way to specify indent scopes per language via toml configs.
...
Can't do it via a scm query nicely because it returns an iterator over
all the matches, whereas we want to traverse the tree ourselves.
Can't extract the pattern data from a parsed query either.
Oh well, toml files for now.
2021-05-14 19:21:46 +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