aboutsummaryrefslogtreecommitdiff
path: root/bpeg.c
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2020-09-16 21:47:48 -0700
committerBruce Hill <bruce@bruce-hill.com>2020-09-16 21:47:48 -0700
commit9ee7102f51c60469659de752f119b1ecbd3c0ba7 (patch)
tree23cb1f8b50eb9009c94e0eda1950f03bca028acb /bpeg.c
parentd536f6a2ca46d4deed84eba38abdbbfc28207400 (diff)
Removed (/) (which is just a clunky way to do "")
Diffstat (limited to 'bpeg.c')
-rw-r--r--bpeg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bpeg.c b/bpeg.c
index c10be76..9c5a23e 100644
--- a/bpeg.c
+++ b/bpeg.c
@@ -156,9 +156,9 @@ int main(int argc, char *argv[])
}
if (isatty(STDOUT_FILENO)) {
- vm_op_t *p = bpeg_pattern(NULL, "(/)");
+ vm_op_t *p = bpeg_pattern(NULL, "''");
check(p, "Failed to compile is-tty");
- add_def(g, NULL, "(/)", "is-tty", p);
+ add_def(g, NULL, "''", "is-tty", p);
}
vm_op_t *pattern = lookup(g, rule);