diff options
author | Joey Hain | 2023-11-03 21:21:01 +0000 |
---|---|---|
committer | GitHub | 2023-11-03 21:21:01 +0000 |
commit | 70bbbd7d193a7928c9b621af9a7e192ef8251f6b (patch) | |
tree | 1b9232d739f8949fcec7f5eaa3f0487326c9f802 /runtime/queries/rust/highlights.scm | |
parent | ae6a0a9cfd377fbfa494760282498cf2ca322782 (diff) |
add highlight scope for type parameters (#8660)
* rust: add highlight scope for type parameters
* handle optional type parameters
Diffstat (limited to 'runtime/queries/rust/highlights.scm')
-rw-r--r-- | runtime/queries/rust/highlights.scm | 7 |
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 ; --- |