Rust: Add keyword `async`, match the entire macro
commitb2b2d430ae4af8b33d5bb920316a1165f8b3ba45
authornotoria <notoria@users.noreply.github.com>
dateFri 4 Jun 2021, 03:01 (5 years ago)
parent8af5a9a
runtime/queries/rust/highlights.scm+3−4
@@ -62,11 +62,9 @@
6262 function: (field_expression
6363 field: (field_identifier) @function.method))
6464
65−; (macro_invocation
66−; macro: (identifier) @function.macro
67−; "!" @function.macro)
6865(macro_invocation
69− macro: (identifier) @function.macro)
66+ macro: (identifier) @function.macro
67+ "!" @function.macro)
7068(macro_invocation
7169 macro: (scoped_identifier
7270 (identifier) @function.macro .))
@@ -111,6 +109,7 @@
111109
112110(lifetime (identifier) @label)
113111
112+"async" @keyword
114113"break" @keyword
115114"const" @keyword
116115"continue" @keyword