From e4928b8a3f19b5bca7016fafc616c9b2dff161e5 Mon Sep 17 00:00:00 2001 From: Dylan Byars Date: Thu, 2 Jun 2022 22:24:34 -0400 Subject: [PATCH] `javascript` filetype inherits `javascriptreact` jsx can be in js --- queries/javascript/nvimGPS.scm | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/queries/javascript/nvimGPS.scm b/queries/javascript/nvimGPS.scm index 8bdc253..9e26d4e 100644 --- a/queries/javascript/nvimGPS.scm +++ b/queries/javascript/nvimGPS.scm @@ -1,11 +1,4 @@ -; 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) +; inherits: javascriptreact ; Class ((class_declaration