Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'runtime/queries/rust/highlights.scm')
| -rw-r--r-- | runtime/queries/rust/highlights.scm | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/runtime/queries/rust/highlights.scm b/runtime/queries/rust/highlights.scm index 3a4448ba..cc8380cb 100644 --- a/runtime/queries/rust/highlights.scm +++ b/runtime/queries/rust/highlights.scm @@ -79,11 +79,7 @@ ; Types ; ------- -(type_parameters - (type_identifier) @type.parameter) -(constrained_type_parameter - left: (type_identifier) @type.parameter) -(optional_type_parameter +(type_parameter name: (type_identifier) @type.parameter) ((type_arguments (type_identifier) @constant) (#match? @constant "^[A-Z_]+$")) @@ -116,6 +112,7 @@ ; Comments ; ------- +(shebang) @comment (line_comment) @comment.line (block_comment) @comment.block @@ -243,10 +240,6 @@ (type_cast_expression "as" @keyword.operator) -((generic_type - type: (type_identifier) @keyword) - (#eq? @keyword "use")) - [ (crate) (super) |