From 0e3dd8d3fa58a2863f0561cdf9252013f4cbdf27 Mon Sep 17 00:00:00 2001 From: Rohit Pradhan <64917719+rohit-px2@users.noreply.github.com> Date: Sat, 13 Mar 2021 14:18:51 -0500 Subject: Rust: Add variable and closure parameter highlights --- queries/rust/highlights.scm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/queries/rust/highlights.scm b/queries/rust/highlights.scm index baafc4be..cc445836 100644 --- a/queries/rust/highlights.scm +++ b/queries/rust/highlights.scm @@ -4,6 +4,7 @@ ; Identifier conventions +(identifier) @variable ; Assume all-caps names are constants ((identifier) @constant (#vim-match? @constant "^[A-Z][A-Z\\d_]+$'")) @@ -123,6 +124,7 @@ ] @punctuation.delimiter (parameter (identifier) @parameter) +(closure_parameters (identifier) @parameter) (lifetime (identifier) @label) -- cgit v1.2.3