diff --git a/queries/javascript/nvimGPS.scm b/queries/javascript/nvimGPS.scm index 0d36776..8bdc253 100644 --- a/queries/javascript/nvimGPS.scm +++ b/queries/javascript/nvimGPS.scm @@ -1,3 +1,11 @@ +; inherits: reacthooks + +; Tag -> `
` +((jsx_element open_tag: (jsx_opening_element name: (identifier) @tag-name)) @scope-root) +; Self-Closing tag -> `` +((jsx_self_closing_element name: (identifier) @tag-name) @scope-root) +; tag named by accessing a property of an object -> `` +((jsx_element open_tag: (jsx_opening_element name: (nested_identifier) @tag-name)) @scope-root) ; Class ((class_declaration