HTML: Handle highlighting of script tags without characters
This commit is contained in:
parent
49071c7d58
commit
712340ab65
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue