summaryrefslogtreecommitdiff
path: root/libregex
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2015-07-05 11:36:46 -0700
committerOri Bernstein <ori@eigenstate.org>2015-07-05 11:36:46 -0700
commitcf357b748945f161ed4a4c7ebac9e1353f3307a3 (patch)
tree8d1f1991d97c37da7f7558454eafd4a46ee4d989 /libregex
parent4fac3196061c75f159d37bd8e7e51dc64f0dd5df (diff)
downloadmc-cf357b748945f161ed4a4c7ebac9e1353f3307a3.tar.gz
Add proper support for a 'gap' variable.
'_' is now a reserved token.
Diffstat (limited to 'libregex')
-rw-r--r--libregex/compile.myr1
-rw-r--r--libregex/test/bld.sub14
2 files changed, 7 insertions, 8 deletions
diff --git a/libregex/compile.myr b/libregex/compile.myr
index ff1b703..28d7ce8 100644
--- a/libregex/compile.myr
+++ b/libregex/compile.myr
@@ -798,7 +798,6 @@ const getc = {re
const peekc = {re
var c
- var _
(c, _) = std.striter(re.pat)
-> c
diff --git a/libregex/test/bld.sub b/libregex/test/bld.sub
index e04af7d..12f8056 100644
--- a/libregex/test/bld.sub
+++ b/libregex/test/bld.sub
@@ -1,7 +1,7 @@
-test basic = basic.myr testmatch.myr;;
-test boundaries = boundaries.myr testmatch.myr;;
-test capture = capture.myr testmatch.myr;;
-test class = class.myr testmatch.myr;;
-test failmatch = failmatch.myr testmatch.myr;;
-test negclass = negclass.myr testmatch.myr;;
-test unicode = unicode.myr testmatch.myr;;
+test basic {inc=../libstd,inc=..} = basic.myr testmatch.myr;;
+test boundaries {inc=../libstd,inc=..} = boundaries.myr testmatch.myr;;
+test capture {inc=../libstd,inc=..} = capture.myr testmatch.myr;;
+test class {inc=../libstd,inc=..} = class.myr testmatch.myr;;
+test failmatch {inc=../libstd,inc=..} = failmatch.myr testmatch.myr;;
+test negclass {inc=../libstd,inc=..} = negclass.myr testmatch.myr;;
+test unicode {inc=../libstd,inc=..} = unicode.myr testmatch.myr;;