2
0
mirror of https://github.com/tenrok/BBob.git synced 2026-06-05 16:42:27 +03:00

fix(parser): tag inside tag parsing regression (#81)

This commit is contained in:
Nikolay Kostyurin
2020-12-16 00:29:26 +02:00
committed by GitHub
parent b131d5f78d
commit 09bda26d7c
3 changed files with 79 additions and 0 deletions
+4
View File
@@ -235,6 +235,8 @@ function createLexer(buffer, options = {}) {
const tagGrabber = createCharGrabber(tagStr, { onSkip });
const hasSpace = tagGrabber.includes(SPACE);
tagMode = TAG_STATE_NAME;
while (tagGrabber.hasNext()) {
tagMode = nextTagState(tagGrabber, !hasSpace);
}
@@ -307,6 +309,8 @@ function createLexer(buffer, options = {}) {
}
function tokenize() {
stateMode = STATE_WORD;
while (chars.hasNext()) {
switch (stateMode) {
case STATE_TAG: