Skip to content
This repository has been archived by the owner on Jul 5, 2022. It is now read-only.

Commit

Permalink
jsx
Browse files Browse the repository at this point in the history
  • Loading branch information
dylanbyars committed Jun 3, 2022
1 parent aea0c51 commit de32f53
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions queries/javascript/nvimGPS.scm
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
; inherits: reacthooks

; Tag -> `<Form></Form>`
((jsx_element open_tag: (jsx_opening_element name: (identifier) @tag-name)) @scope-root)
; Self-Closing tag -> `<Foo />`
((jsx_self_closing_element name: (identifier) @tag-name) @scope-root)
; tag named by accessing a property of an object -> `<React.Provider>`
((jsx_element open_tag: (jsx_opening_element name: (nested_identifier) @tag-name)) @scope-root)

; Class
((class_declaration
Expand Down

0 comments on commit de32f53

Please sign in to comment.