From 243f32a7bb8c52bf330f2eaabc80a5c6715bace9 Mon Sep 17 00:00:00 2001 From: Matthew Butterick Date: Wed, 28 Apr 2021 17:01:01 -0700 Subject: [PATCH] refine docs for `from/stop-before` Only works with literal tokens, not arbitrary patterns, due to underlying limitations on `complement` pattern matcher --- brag/brag/brag.scrbl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/brag/brag/brag.scrbl b/brag/brag/brag.scrbl index fa9b0b9..6c40f6c 100755 --- a/brag/brag/brag.scrbl +++ b/brag/brag/brag.scrbl @@ -1176,11 +1176,11 @@ In other words, this matches @emph{all} the @racket[re]s in order, whereas @rack @defform[(from/to open close)]{ - A string that is bounded by @racket[open] and @racket[close]. Matching is non-greedy (meaning, it stops at the first occurence of @racket[close]). The resulting lexeme includes @racket[open] and @racket[close]. To remove them, see @racket[trim-ends].} + A string that is bounded by literal tokens @racket[open] and @racket[close]. Matching is non-greedy (meaning, it stops at the first occurence of @racket[close]). The resulting lexeme includes @racket[open] and @racket[close]. To remove them, see @racket[trim-ends].} @defform[(from/stop-before open close)]{ - Like @racket[from/to], a string that is bounded by @racket[open] and @racket[close], except that @racket[close] is not included in the resulting lexeme. Matching is non-greedy (meaning, it stops at the first occurence of @racket[close]).} + Like @racket[from/to], a string that is bounded by literal tokens @racket[open] and @racket[close], except that @racket[close] is not included in the resulting lexeme. Matching is non-greedy (meaning, it stops at the first occurence of @racket[close]).} @subsection{Differences with @tt{ragg}}