Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'runtime/queries/rust/locals.scm')
| -rw-r--r-- | runtime/queries/rust/locals.scm | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/runtime/queries/rust/locals.scm b/runtime/queries/rust/locals.scm index d745c2b4..527877b1 100644 --- a/runtime/queries/rust/locals.scm +++ b/runtime/queries/rust/locals.scm @@ -41,6 +41,25 @@ ; References (self) @local.reference (identifier) @local.reference + ; lifetimes / labels (lifetime (identifier) @label) (label (identifier) @label) + +; == scoped function calls and function defs == +; avoid coloring functions as variables +; taken from highlights.scm +(call_expression + function: (scoped_identifier + name: (identifier) @function)) +(generic_function + function: (scoped_identifier + name: (identifier) @function)) + +(function_item + name: (identifier) @function) +(function_signature_item + name: (identifier) @function) + +; == other == +(enum_variant (identifier) @type.enum.variant) |