From 57035b5814f343bc6110676c9ae2eacfcd5340c2 Mon Sep 17 00:00:00 2001 From: Edwar Martinez Vale <36998912+edwarmv@users.noreply.github.com> Date: Tue, 1 Mar 2022 07:10:27 -0400 Subject: [PATCH] Fix JSX autotag inside nested elements --- lua/nvim-ts-autotag/internal.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/nvim-ts-autotag/internal.lua b/lua/nvim-ts-autotag/internal.lua index 945b675..a048732 100644 --- a/lua/nvim-ts-autotag/internal.lua +++ b/lua/nvim-ts-autotag/internal.lua @@ -42,7 +42,7 @@ local JSX_TAG = { start_tag_pattern = 'jsx_opening_element', start_name_tag_pattern = 'identifier|nested_identifier|jsx_identifier', end_tag_pattern = "jsx_closing_element", - end_name_tag_pattern = "identifier|jsx_identifier", + end_name_tag_pattern = "identifier|nested_identifier|jsx_identifier", close_tag_pattern = 'jsx_closing_element', close_name_tag_pattern = 'identifier|nested_identifier|jsx_identifier', element_tag = 'jsx_element',