From 3d4662e79782f6a9706c441fc63e873148568a27 Mon Sep 17 00:00:00 2001 From: Santos Gallegos Date: Sun, 3 Jan 2021 22:42:17 -0500 Subject: Rust: highlight brackets --- queries/rust/highlights.scm | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/queries/rust/highlights.scm b/queries/rust/highlights.scm index fa81ffbc..9daee93a 100644 --- a/queries/rust/highlights.scm +++ b/queries/rust/highlights.scm @@ -20,7 +20,7 @@ (call_expression function: (identifier) @function) (call_expression - function: (scoped_identifier + function: (scoped_identifier (identifier) @function .)) (call_expression function: (field_expression @@ -97,11 +97,13 @@ ] @comment [ -"(" -")" -"[" -"]" - ] @punctuation.bracket + "(" + ")" + "[" + "]" + "{" + "}" +] @punctuation.bracket (type_arguments "<" @punctuation.bracket -- cgit v1.2.3