Skip to content

Commit

Permalink
Encourage better statement error locations by adding cuts in grammar
Browse files Browse the repository at this point in the history
Signed-off-by: reidspencer <reid.spencer@yoppworks.com>
  • Loading branch information
reid-spencer committed Sep 15, 2023
1 parent ce687ed commit 0fd2643
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ private[parsing] trait StatementParser {

private def replyStatement[u: P]: P[ReplyStatement] = {
P(
location ~ Keywords.reply ~ Readability.with_.? ~ messageRef
location ~ Keywords.reply ~/ Readability.with_.?./ ~ messageRef
)./.map { tpl => (ReplyStatement.apply _).tupled(tpl) }
}

Expand Down

0 comments on commit 0fd2643

Please sign in to comment.