From 711e1aa84043de37a295f694275aa0d877d87b58 Mon Sep 17 00:00:00 2001 From: MrOtherGuy Date: Sun, 5 Feb 2023 10:44:16 +0200 Subject: [PATCH] Fix typo in code-block hightlighter AtValue parsing --- html_resources/code-block/code-block-highlighter.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/html_resources/code-block/code-block-highlighter.js b/html_resources/code-block/code-block-highlighter.js index c5511ef..4bad9cd 100644 --- a/html_resources/code-block/code-block-highlighter.js +++ b/html_resources/code-block/code-block-highlighter.js @@ -284,7 +284,7 @@ class CSSHighlighter extends BaseHighlighter{ let idxOffset = 0; switch(character){ case ";": - indexOffset = 1; + idxOffset = 1; case "{": state.token = chars.slice(tokenStart,pointer + idxOffset).join(""); CSSHighlighter.createElementFromToken(state,CSSHighlighter.State.AtValue,targetNode);