summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOri Bernstein <ori@markovcorp.com>2018-03-28 15:20:16 -0700
committerOri Bernstein <ori@markovcorp.com>2018-03-28 15:20:16 -0700
commited04d47bc8b7ea8eac5f84d71383e6a63c544182 (patch)
tree1d64336c2161647defa050e20379e1863d7f57be
parentfb0c459a47563a8f455962ae8dc26654ae1d4d9c (diff)
downloadmc-ed04d47bc8b7ea8eac5f84d71383e6a63c544182.tar.gz
Fix typos in build.
-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)
;;