aboutsummaryrefslogtreecommitdiff
path: root/runtime/queries/rust/highlights.scm
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/queries/rust/highlights.scm')
-rw-r--r--runtime/queries/rust/highlights.scm7
1 files changed, 7 insertions, 0 deletions
diff --git a/runtime/queries/rust/highlights.scm b/runtime/queries/rust/highlights.scm
index bf2fde49..47e57e80 100644
--- a/runtime/queries/rust/highlights.scm
+++ b/runtime/queries/rust/highlights.scm
@@ -9,6 +9,13 @@
; Types
; -------
+(type_parameters
+ (type_identifier) @type.parameter)
+(constrained_type_parameter
+ left: (type_identifier) @type.parameter)
+(optional_type_parameter
+ name: (type_identifier) @type.parameter)
+
; ---
; Primitives
; ---