HTML: Handle highlighting of script tags without characters

This commit is contained in:
networkException 2021-10-25 19:33:46 +02:00
parent 49071c7d58
commit 712340ab65

View file

@ -124,6 +124,7 @@ export class Highlighter {
this.createNode({ position: { line: 0, character: 0 }, color: Palette.String, content: '' });
this.reconsumeIn(State.Script);
break;
case Type.EndTag: this.reconsumeIn(State.EndTag); break;
default: VERIFY_NOT_REACHED(this.currentToken.type);
}