From 76ca1a20aa42edb5c65c19029968aad4625790dc Mon Sep 17 00:00:00 2001 From: LuoChen Date: Sat, 27 Jul 2024 13:00:40 +0800 Subject: [PATCH] fix: default config html tag issue #195 --- autoload/rainbow_main.vim | 2 +- tests/test.html | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/autoload/rainbow_main.vim b/autoload/rainbow_main.vim index a68a3ca..fe22ea1 100644 --- a/autoload/rainbow_main.vim +++ b/autoload/rainbow_main.vim @@ -39,7 +39,7 @@ let s:rainbow_conf = { \ 'parentheses': ['start=/\v\<\z([-_:a-zA-Z0-9]+)(\s+[-_:a-zA-Z0-9]+(\=("[^"]*"|'."'".'[^'."'".']*'."'".'))?)*\>/ end=## fold'], \ }, \ 'html': { -\ 'parentheses': ['start=/\v\<((script|style|area|base|br|col|embed|hr|img|input|keygen|link|menuitem|meta|param|source|track|wbr)[ >])@!\z([-_:a-zA-Z0-9]+)(\s+[-_:a-zA-Z0-9]+(\=("[^"]*"|'."'".'[^'."'".']*'."'".'|[^ '."'".'"><=`]*))?)*\>/ end=## fold'], +\ 'parentheses': ['start=/\v\<((script|style|area|base|br|col|embed|hr|img|input|keygen|link|menuitem|meta|param|source|track|wbr)[ >])@!\z([-_:a-zA-Z0-9]+)(\s+[-_:a-zA-Z0-9]+(\=("[^"]*"|'."'".'[^'."'".']*'."'".'|[^ '."'".'"><=`]*))?)*(\n|\s)*\>/ end=## fold'], \ }, \ 'lua': { \ 'parentheses': ["start=/(/ end=/)/", "start=/{/ end=/}/", "start=/\\v\\[\\ze($|[^[])/ end=/\\]/"], diff --git a/tests/test.html b/tests/test.html index 9151052..73103ca 100644 --- a/tests/test.html +++ b/tests/test.html @@ -18,5 +18,17 @@ alert("hey"); } + + + + + + + + + + +