summaryrefslogtreecommitdiff
path: root/lib/regex
diff options
context:
space:
mode:
Diffstat (limited to 'lib/regex')
-rw-r--r--lib/regex/interp.myr3
-rw-r--r--lib/regex/redump.myr2
2 files changed, 3 insertions, 2 deletions
diff --git a/lib/regex/interp.myr b/lib/regex/interp.myr
index 64235be..6db8495 100644
--- a/lib/regex/interp.myr
+++ b/lib/regex/interp.myr
@@ -309,7 +309,8 @@ const run = {re, str, idx, wholestr
* operating over the same characters, and finishing
* at the same time.
*/
-const step = {re, thr, curip var str, nthr, inst
+const step = {re, thr, curip
+ var str, nthr, inst
str = re.str
inst = re.code[thr.ip]
diff --git a/lib/regex/redump.myr b/lib/regex/redump.myr
index af8e2bf..6ac04ce 100644
--- a/lib/regex/redump.myr
+++ b/lib/regex/redump.myr
@@ -96,7 +96,7 @@ const show = {re, ln, mg
| `std.None:
std.put("Match failed at {}:\n", re.lastip)
std.put("\t{}\n", re.pat)
- caret(re, re.pcidx[re.lastip])
+ showpos(re, re.pcidx[re.lastip])
std.put("\t{}\n", ln)
showpos(re, re.strp - 1)
;;