diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-09-03 23:16:45 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-09-03 23:16:45 -0400 |
| commit | b8bb4ada8b28e761f09e40618550684fae80249f (patch) | |
| tree | bc79a181433206b55f367d6b1cb9558334aa5477 /test/text.tm | |
| parent | 02dbcbf8b5f3b4aecec78a59eea7528e5f1f3661 (diff) | |
Add recursive mode to text replacement and update docs
Diffstat (limited to 'test/text.tm')
| -rw-r--r-- | test/text.tm | 6 |
1 files changed, 6 insertions, 0 deletions
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(): >> "<tag>":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) " + |
