Skip to content

Commit

Permalink
Change record field expression to member
Browse files Browse the repository at this point in the history
  • Loading branch information
Emilios1995 committed Mar 24, 2024
1 parent 826db72 commit 43635c3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion queries/rescript/highlights.scm
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,10 @@
(record_field (property_identifier) @property)
(object (field (property_identifier) @property))
(object_type (field (property_identifier) @property))
(member_expression (property_identifier) @property)
(module_identifier) @module

(member_expression (property_identifier) @variable.member)

(record_pattern
(value_identifier) @variable.member)

Expand Down
3 changes: 3 additions & 0 deletions test/highlight/expressions.res
Original file line number Diff line number Diff line change
Expand Up @@ -68,3 +68,6 @@ let v = M.v

let {x} = y
// ^variable.member

let x = y.x
// ^variable.member

0 comments on commit 43635c3

Please sign in to comment.