Skip to content

Commit

Permalink
fix: default config html tag issue #195
Browse files Browse the repository at this point in the history
  • Loading branch information
luochen1990 committed Jul 27, 2024
1 parent 61f719a commit 76ca1a2
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion autoload/rainbow_main.vim
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ let s:rainbow_conf = {
\ 'parentheses': ['start=/\v\<\z([-_:a-zA-Z0-9]+)(\s+[-_:a-zA-Z0-9]+(\=("[^"]*"|'."'".'[^'."'".']*'."'".'))?)*\>/ end=#</\z1># 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=#</\z1># 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=#</\z1># fold'],
\ },
\ 'lua': {
\ 'parentheses': ["start=/(/ end=/)/", "start=/{/ end=/}/", "start=/\\v\\[\\ze($|[^[])/ end=/\\]/"],
Expand Down
12 changes: 12 additions & 0 deletions tests/test.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,17 @@
alert("hey");
}
</script>

<a foo="" >
<b>
</b>
</a>

<a foo=""
>
<b>
</b>
</a>

</body>
</html>

0 comments on commit 76ca1a2

Please sign in to comment.