1
0
mirror of https://github.com/chylex/IntelliJ-Rainbow-Brackets.git synced 2025-05-11 03:34:04 +02:00

Fix Rainbowify tag name doesn't works in JSX

(cherry picked from commit fa53f8fa0add3d9839b9d3cbac3e0448da55ac7b)
This commit is contained in:
张志豪 2021-01-30 17:18:06 +08:00
parent 44a3a6dedc
commit 8414e8a2ea

View File

@ -57,6 +57,7 @@ open class XmlRainbowVisitor : RainbowHighlightVisitor() {
element.level?.let { element.setHighlightInfo(element.parent, it + 1, startElement, endElement) }
}
XmlTokenType.XML_TAG_NAME,
XmlTokenType.XML_NAME -> {
if (RainbowSettings.instance.rainbowifyTagNameInXML) {
val prevSibling = element.prevSibling