html: Exclude all brackets from bracket colorization (#46808)

Closes #45755

Rainbow brackets in HTML files do not really make sense - a tag is
always enclosed in angled brackets. With our current approach, that
means that we will highlight all brackets in HTML files with the same
color, because well, these angled brackets do not quite behave like in
other languages.

Hence, let themes color this again and just exluce HTML angled brackets
from rainbow bracket colorization, as it is no real rainbow bracket
colorization anyway.

Release Notes:

- N/A
This commit is contained in:
Finn Evers 2026-01-14 18:06:16 +01:00 committed by GitHub
parent c67328ab2e
commit 993bbf596d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,5 +1,21 @@
("<" @open "/>" @close)
("</" @open ">" @close)
("<" @open ">" @close)
(("\"" @open "\"" @close) (#set! rainbow.exclude))
((element (start_tag) @open (end_tag) @close) (#set! newline.only) (#set! rainbow.exclude))
(("<" @open
"/>" @close)
(#set! rainbow.exclude))
(("</" @open
">" @close)
(#set! rainbow.exclude))
(("<" @open
">" @close)
(#set! rainbow.exclude))
(("\"" @open
"\"" @close)
(#set! rainbow.exclude))
((element
(start_tag) @open
(end_tag) @close)
(#set! newline.only)
(#set! rainbow.exclude))