Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
PlasmaHH opened this issue Jul 26, 2024 · 2 comments

Comments

@PlasmaHH
Copy link

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

@luochen1990
Copy link
Owner

luochen1990 commented Jul 27, 2024

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

@PlasmaHH
Copy link
Author

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants