diff --git a/basis/xmode/code2html/code2html-tests.factor b/basis/xmode/code2html/code2html-tests.factor
index 241ab7ff75..a35e6a2194 100644
--- a/basis/xmode/code2html/code2html-tests.factor
+++ b/basis/xmode/code2html/code2html-tests.factor
@@ -18,4 +18,8 @@ kernel io.streams.string xml.writer ;
<" int x = "hi";
/* a comment */ "> htmlize-stream
write-xml
+] unit-test
+
+[ ": foo ;" ] [
+ { ": foo ;" } "factor" htmlize-lines xml>string
] unit-test
\ No newline at end of file
diff --git a/basis/xmode/marker/marker.factor b/basis/xmode/marker/marker.factor
index f584756f33..98b4f91f86 100755
--- a/basis/xmode/marker/marker.factor
+++ b/basis/xmode/marker/marker.factor
@@ -84,7 +84,7 @@ M: string-matcher text-matches?
] keep string>> length and ;
M: regexp text-matches?
- [ >string ] dip re-contains? ;
+ [ >string ] dip first-match to>> ;
: rule-start-matches? ( rule -- match-count/f )
dup start>> tuck swap can-match-here? [