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

Commit

Permalink
javascript filetype inherits javascriptreact
Browse files Browse the repository at this point in the history
jsx can be in js
  • Loading branch information
dylanbyars committed Jun 3, 2022
1 parent 523707b commit e4928b8
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions queries/javascript/nvimGPS.scm
Original file line number Diff line number Diff line change
@@ -1,11 +1,4 @@
; 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)
; inherits: javascriptreact

; Class
((class_declaration
Expand Down

0 comments on commit e4928b8

Please sign in to comment.