Small optimization of external noteContent parser

This commit is contained in:
Jonatan Heyman 2023-01-19 11:31:49 +01:00
parent 00c2f21b93
commit 80febafd26

View File

@ -35,8 +35,11 @@ export const noteContent = new ExternalTokenizer((input) => {
input.acceptToken(NoteContent, 1); input.acceptToken(NoteContent, 1);
return; return;
} }
if (next !== FIRST_TOKEN_CHAR) {
current = input.advance(); current = input.advance(2);
} else {
current = input.advance(1);
}
next = input.peek(1); next = input.peek(1);
} }
}); });