fix: sepBy
If parser consumed something, keep error.
This commit is contained in:
parent
9694102b3e
commit
bb0bfb5742
1 changed files with 2 additions and 1 deletions
|
|
@ -444,7 +444,8 @@ fun c s =>
|
|||
let pos := s.pos;
|
||||
let s := p c s;
|
||||
if s.hasError then
|
||||
if pOpt then
|
||||
if s.pos > pos then s
|
||||
else if pOpt then
|
||||
let s := s.restore sz pos;
|
||||
if s.stackSize - iniSz == 2 && unboxSingleton then
|
||||
s.popSyntax
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue