diff --git a/src/parseBinlog.ts b/src/parseBinlog.ts index f778589..ee76abc 100644 --- a/src/parseBinlog.ts +++ b/src/parseBinlog.ts @@ -177,14 +177,16 @@ export function* parseBinlog(binlog: string[]): Generator][&%+!^#] )+x[a0-5]$/.test(binlog[0]), - () => `${HERE} ${JSON.stringify(binlog[0])}` - ) + for (let times = 2; times--;) { + if (binlog[0][7] == `@`) { + assert( + /^`n--` [ad]@ \/ (?:[2-9a@*?>][&%+!^#] )+x[a0-5]$/.test(binlog[0]), + () => `${HERE} ${JSON.stringify(binlog[0])}` + ) - binlog.shift() - assert(binlog[0], HERE) + binlog.shift() + assert(binlog[0], HERE) + } } for (let times = 2; times--;) {