diff options
| author | Rohit Pradhan <64917719+rohit-px2@users.noreply.github.com> | 2021-03-13 14:18:51 -0500 |
|---|---|---|
| committer | Kiyan <yazdani.kiyan@protonmail.com> | 2021-03-15 19:02:39 +0100 |
| commit | 0e3dd8d3fa58a2863f0561cdf9252013f4cbdf27 (patch) | |
| tree | 770791b6c08e627b1c259ac9d0b1a2a5f88f55d0 /queries/rust | |
| parent | 0bab8e56b202ead3e79b425b8a3417e5acf661d9 (diff) | |
Rust: Add variable and closure parameter highlights
Diffstat (limited to 'queries/rust')
| -rw-r--r-- | queries/rust/highlights.scm | 2 |
1 files changed, 2 insertions, 0 deletions
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) |
