summaryrefslogtreecommitdiff
path: root/lib/regex
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2017-12-25 16:14:38 -0800
committerOri Bernstein <ori@eigenstate.org>2017-12-25 16:14:38 -0800
commit52eca667bbd1cf5a929d3f2352c3c1ee8e91625d (patch)
tree63e24e0a4d59688bb25c632d23cccea57209bcfd /lib/regex
parent68a437bb6d370781e18ad1b794cc34c21dd5b361 (diff)
downloadmc-52eca667bbd1cf5a929d3f2352c3c1ee8e91625d.tar.gz
Formatting as a state machine.
Diffstat (limited to 'lib/regex')
-rw-r--r--lib/regex/compile.myr4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/regex/compile.myr b/lib/regex/compile.myr
index 29e53a2..6a82cc6 100644
--- a/lib/regex/compile.myr
+++ b/lib/regex/compile.myr
@@ -879,7 +879,7 @@ const fmtfail = {sb, ap, opt
match std.vanext(ap)
| `Noimpl: std.sbfmt(sb, "no implementation")
| `Incomplete: std.sbfmt(sb, "regex ended before input fully parsed")
- | `Unbalanced c: std.sbfmt(sb, "unbalanced {}", c)
+ | `Unbalanced c:std.sbfmt(sb, "unbalanced {}", c)
| `Emptyparen: std.sbfmt(sb, "empty parentheses")
| `Badrep c: std.sbfmt(sb, "invalid repetition {}", c)
| `Badrange s: std.sbfmt(sb, "invalid range name {}", s)
@@ -899,6 +899,6 @@ const mk = {re, ast, loc
const __init__ = {
var e : status
- std.fmtinstall(std.typeof(e), fmtfail, [][:])
+ std.fmtinstall(std.typeof(e), fmtfail)
}