From 712340ab65427ff9ff430e45164ea7ffe61e1c31 Mon Sep 17 00:00:00 2001 From: networkException Date: Mon, 25 Oct 2021 19:33:46 +0200 Subject: [PATCH] HTML: Handle highlighting of script tags without characters --- html/highlighter.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/html/highlighter.ts b/html/highlighter.ts index 91c783e..6e6b650 100644 --- a/html/highlighter.ts +++ b/html/highlighter.ts @@ -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); }