From b2b2d430ae4af8b33d5bb920316a1165f8b3ba45 Mon Sep 17 00:00:00 2001 From: notoria Date: Fri, 4 Jun 2021 03:01:32 +0200 Subject: Rust: Add keyword `async`, match the entire macro --- runtime/queries/rust/highlights.scm | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'runtime/queries/rust/highlights.scm') 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 -- cgit v1.2.3-70-g09d2