Skip to content

Commit

Permalink
[tree-sitter] (oops)
Browse files Browse the repository at this point in the history
  • Loading branch information
savetheclocktower committed Dec 12, 2023
1 parent aca923a commit 2ebf7d5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/language-javascript/grammars/ts/highlights.scm
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@
(object_pattern
(pair_pattern
; TODO: This arguably isn't an object key.
key: (_) @entity.other.attribute-name.y._LANG_)
key: (_) @entity.other.attribute-name.js)
(#set! capture.final true))


Expand Down
6 changes: 3 additions & 3 deletions packages/language-typescript/grammars/common/highlights.scm
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
(object_pattern
(pair_pattern
; TODO: This arguably isn't an object key.
key: (_) @entity.other.attribute-name.z._LANG_
key: (_) @entity.other.attribute-name._LANG_
value: (identifier) @variable.other.assignment.destructuring._LANG_)
(#set! capture.final true))

Expand All @@ -102,15 +102,15 @@
(object_pattern
(pair_pattern
; TODO: This arguably isn't an object key.
key: (_) @entity.other.attribute-name.y._LANG_)
key: (_) @entity.other.attribute-name._LANG_)
(#set! capture.final true))

; A variable object alias destructuring with default value:
; The "bar" and "foo" in `let { bar: foo = true } = something`
(object_pattern
(pair_pattern
; TODO: This arguably isn't an object key.
key: (_) @entity.other.attribute-name.x._LANG_
key: (_) @entity.other.attribute-name._LANG_
value: (assignment_pattern
left: (identifier) @variable.other.assignment.destructuring._LANG_)))

Expand Down

0 comments on commit 2ebf7d5

Please sign in to comment.