mirror of
https://github.com/heyman/heynote.git
synced 2024-11-29 03:13:48 +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);
|
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);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user