From 63641c499f79d578d656ec0400cd8c78b42ef0a7 Mon Sep 17 00:00:00 2001 From: numToStr Date: Thu, 2 Jun 2022 15:06:22 +0530 Subject: [PATCH] fix: self closing element --- lua/Comment/jsx.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lua/Comment/jsx.lua b/lua/Comment/jsx.lua index f911576..a5e9b98 100644 --- a/lua/Comment/jsx.lua +++ b/lua/Comment/jsx.lua @@ -5,6 +5,8 @@ local J = { local query = [[ (jsx_opening_element [(jsx_attribute) (comment)] @nojsx) + (jsx_self_closing_element [(jsx_attribute) (comment)] @nojsx) + ((jsx_expression (comment)) @jsx) (jsx_expression