mirror of
https://github.com/heyman/heynote.git
synced 2024-11-25 01:13:17 +01:00
Small optimization of external noteContent parser
This commit is contained in:
parent
00c2f21b93
commit
80febafd26
@ -35,8 +35,11 @@ export const noteContent = new ExternalTokenizer((input) => {
|
||||
input.acceptToken(NoteContent, 1);
|
||||
return;
|
||||
}
|
||||
|
||||
current = input.advance();
|
||||
if (next !== FIRST_TOKEN_CHAR) {
|
||||
current = input.advance(2);
|
||||
} else {
|
||||
current = input.advance(1);
|
||||
}
|
||||
next = input.peek(1);
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user