rainbow icon indicating copy to clipboard operation
rainbow copied to clipboard

[Bug] xml tag rainbow colouring breaks when opening tag contains wrong whitespace

Open PlasmaHH opened this issue 1 year ago • 2 comments

Describe the bug

When an xml opening tag contains an attribute and after that there is some whitespace, then the rainbow colouring does not work

To Reproduce

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

or

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

For the first case replaying \>/ with \s*\>/ in the regex for start= works, but for the second there is probably some way that it needs to match over multiple lines

PlasmaHH avatar Jul 26 '24 13:07 PlasmaHH

@PlasmaHH The default config is fixed now, can you help to test it?

luochen1990 avatar Jul 27 '24 05:07 luochen1990

@PlasmaHH The default config is fixed now, can you help to test it?

Yes, it works for html. Note that my initial report was about xml where it should be added too and I guess as well in xhtml too

PlasmaHH avatar Jul 29 '24 21:07 PlasmaHH