]> gitweb.factorcode.org Git - factor.git/commitdiff
Fixing XMode, which I gratuitiously broke
authorDaniel Ehrenberg <littledan@Macintosh-122.local>
Wed, 11 Mar 2009 04:21:05 +0000 (23:21 -0500)
committerDaniel Ehrenberg <littledan@Macintosh-122.local>
Wed, 11 Mar 2009 04:21:05 +0000 (23:21 -0500)
basis/xmode/marker/marker.factor

index d3ad266b5d4688f7dfb933c53331ceac099e8e21..f584756f33c68f41323d4a4641ef578d84eb317b 100755 (executable)
@@ -3,7 +3,7 @@
 USING: kernel namespaces make xmode.rules xmode.tokens
 xmode.marker.state xmode.marker.context xmode.utilities
 xmode.catalog sequences math assocs combinators strings
-regexp splitting unicode.case
+regexp splitting unicode.case ascii
 combinators.short-circuit accessors ;
 IN: xmode.marker
 
@@ -84,7 +84,7 @@ M: string-matcher text-matches?
     ] keep string>> length and ;
 
 M: regexp text-matches?
-    [ >string ] dip match-head ;
+    [ >string ] dip re-contains? ;
 
 : rule-start-matches? ( rule -- match-count/f )
     dup start>> tuck swap can-match-here? [