Commit Graph

9 Commits (14db2cc68b3e9911f64e675c32800f8cc7b2a5ed)

Author SHA1 Message Date
notoria f3a243c6cb Rust: Highlight crate namespace, categorize `mut` 4 years ago
notoria b2b2d430ae Rust: Add keyword `async`, match the entire macro 4 years ago
Blaž Hrastnik 67b037050f Adjust rust indents 4 years ago
Blaž Hrastnik 6e03019a2c Adjust highlighting for rust. 4 years ago
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.
4 years ago
Blaž Hrastnik 305a059f58 Highlight metavariables ($var) inside rust macros. 4 years ago
Blaž Hrastnik dfb1ae2d33 Rust: Highlight 'crate' as a keyword. 4 years ago
Blaž Hrastnik 61872de6c0 queries: rust: highlight number constants correctly. 4 years ago
Blaž Hrastnik 71c06c11cb Import tree sitter queries. 4 years ago