Skip to content

Commit

Permalink
fix: path scopes overriding pattern match destructuring
Browse files Browse the repository at this point in the history
  • Loading branch information
nik-rev committed Feb 6, 2025
1 parent c9582db commit d286d83
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions runtime/queries/rust/highlights.scm
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,16 @@
(function_signature_item
name: (identifier) @function)

; ---
; Remaining Paths
; ---

(scoped_identifier
path: (identifier)? @namespace
name: (identifier) @namespace)
(scoped_type_identifier
path: (identifier) @namespace)

; -------
; Guess Other Types
; -------
Expand Down Expand Up @@ -347,6 +357,7 @@

(enum_variant (identifier) @type.enum.variant)


; -------
; Constructors
; -------
Expand Down Expand Up @@ -466,13 +477,3 @@
"FromIterator"
"TryFrom"
"TryInto"))

; ---
; Remaining Paths
; ---

(scoped_identifier
path: (identifier)? @namespace
name: (identifier) @namespace)
(scoped_type_identifier
path: (identifier) @namespace)

0 comments on commit d286d83

Please sign in to comment.