on master help sign in
Rust: Add keyword `async`, match the entire macro
b2b2d43notoria
runtime/queries/rust/highlights.scm+3−4
@@ -62,11 +62,9 @@
62 function: (field_expression
62 function: (field_expression
63 field: (field_identifier) @function.method))
63 field: (field_identifier) @function.method))
64
64
65−; (macro_invocation
66−; macro: (identifier) @function.macro
67−; "!" @function.macro)
68(macro_invocation
65(macro_invocation
69− macro: (identifier) @function.macro)
66+ macro: (identifier) @function.macro
67+ "!" @function.macro)
70(macro_invocation
68(macro_invocation
71 macro: (scoped_identifier
69 macro: (scoped_identifier
72 (identifier) @function.macro .))
70 (identifier) @function.macro .))
@@ -111,6 +109,7 @@
111
109
112(lifetime (identifier) @label)
110(lifetime (identifier) @label)
113
111
112+"async" @keyword
114"break" @keyword
113"break" @keyword
115"const" @keyword
114"const" @keyword
116"continue" @keyword
115"continue" @keyword