From b8bb4ada8b28e761f09e40618550684fae80249f Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Tue, 3 Sep 2024 23:16:45 -0400 Subject: Add recursive mode to text replacement and update docs --- test/text.tm | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'test') diff --git a/test/text.tm b/test/text.tm index 950805a9..e3848a08 100644 --- a/test/text.tm +++ b/test/text.tm @@ -236,3 +236,9 @@ func main(): >> "":replace_all({$//:">"}) = "<tag>" + >> " BAD(x, fn(y), BAD(z), w) ":replace($/BAD(?)/, "good(\1)", recursive=yes) + = " good(x, fn(y), good(z), w) " + + >> " BAD(x, fn(y), BAD(z), w) ":replace($/BAD(?)/, "good(\1)", recursive=no) + = " good(x, fn(y), BAD(z), w) " + -- cgit v1.2.3