mirror of
https://github.com/zed-industries/zed.git
synced 2026-05-24 21:59:04 +00:00
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:
parent
c67328ab2e
commit
993bbf596d
1 changed files with 21 additions and 5 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue