Skip to content

delimited-dsl where closing delimiter is also an escape leader #62

Answered by foonathan
dancingbug asked this question in Q&A
Discussion options

You must be logged in to vote

A simple fix would be to change the closing delimiter to match % but not %% using dsl::not_followed_by: https://lexy.foonathan.net/playground/?id=xaazc4dMo&mode=tree.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by dancingbug
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #61 on April 11, 2022 08:39.