diff options
author | notoria | 2021-06-04 01:01:32 +0000 |
---|---|---|
committer | Blaž Hrastnik | 2021-06-04 01:57:17 +0000 |
commit | b2b2d430ae4af8b33d5bb920316a1165f8b3ba45 (patch) | |
tree | 48d1a0907728bd9a46829d5e2d71c6437a416ee3 | |
parent | 8af5a9a5cf5d5d7a22565a55d9ae8f623fc63455 (diff) |
Rust: Add keyword `async`, match the entire macro
-rw-r--r-- | runtime/queries/rust/highlights.scm | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/runtime/queries/rust/highlights.scm b/runtime/queries/rust/highlights.scm index 88ffcc27..adf579ae 100644 --- a/runtime/queries/rust/highlights.scm +++ b/runtime/queries/rust/highlights.scm @@ -62,11 +62,9 @@ function: (field_expression field: (field_identifier) @function.method)) -; (macro_invocation -; macro: (identifier) @function.macro -; "!" @function.macro) (macro_invocation - macro: (identifier) @function.macro) + macro: (identifier) @function.macro + "!" @function.macro) (macro_invocation macro: (scoped_identifier (identifier) @function.macro .)) @@ -111,6 +109,7 @@ (lifetime (identifier) @label) +"async" @keyword "break" @keyword "const" @keyword "continue" @keyword |