From bc8dea7a7893678060d3d5643f5d20976f1ca263 Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Mon, 13 May 2024 04:27:35 -0500 Subject: [PATCH] fix(svelte): use correct close tag patterns See https://github.com/windwp/nvim-ts-autotag/pull/167 Co-authored-by: "roy.crippen4" --- lua/nvim-ts-autotag/internal.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lua/nvim-ts-autotag/internal.lua b/lua/nvim-ts-autotag/internal.lua index f4edda1..36a1d45 100644 --- a/lua/nvim-ts-autotag/internal.lua +++ b/lua/nvim-ts-autotag/internal.lua @@ -86,8 +86,8 @@ local SVELTE_TAG = { start_name_tag_pattern = { 'tag_name' }, end_tag_pattern = { 'end_tag' }, end_name_tag_pattern = { 'tag_name' }, - close_tag_pattern = { 'ERROR' }, - close_name_tag_pattern = { 'ERROR', 'erroneous_end_tag_name' }, + close_tag_pattern = { 'erroneous_end_tag' }, + close_name_tag_pattern = { 'erroneous_end_tag_name' }, element_tag = { 'element' }, skip_tag_pattern = { 'quoted_attribute_value', 'end_tag' }, }