rep fails to stop at EOF after single row — how to terminate cleanly? #328
Unanswered
EtaCassiopeia
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all, I’m hitting an issue where a parser fails to stop after a single row in a table, expecting another row at EOF. Here’s the minimal code:
Example Input:
" | a | b |\n"
(length 12, single row)Error:
Parse failed: Failed at index 12: expected , trace: Expected "|":2:1, found ""
After parsing
" | a | b |\n"
,row.rep(0)
seems to expect another row starting with|
at EOF (index 12), despitemin=0
andEnd
. I want it to stop after one row if no more rows follow. Is this a bug in.rep
, or am I structuring it wrong? Any suggestions to make it stop cleanly at EOF?Beta Was this translation helpful? Give feedback.
All reactions