Split the .peek() method into its next-char and lookahead cases

This commit is contained in:
Rangi42
2024-03-28 15:00:29 -04:00
parent 6f74e4fb9c
commit 106e516962
2 changed files with 33 additions and 7 deletions

View File

@@ -100,7 +100,8 @@ struct LexerState {
~LexerState();
int peek(uint8_t distance);
int peekChar();
int peekCharAhead();
std::shared_ptr<char[]> makeSharedCaptureBufPtr() const {
return std::shared_ptr<char[]>(captureBuf, captureBuf->data());