Fix typo in code-block hightlighter AtValue parsing

This commit is contained in:
MrOtherGuy 2023-02-05 10:44:16 +02:00
parent c50e5df3e3
commit 711e1aa840

View file

@ -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);