]> gitweb.factorcode.org Git - factor.git/commitdiff
XMode fix
authorSlava Pestov <slava@factorcode.org>
Sat, 8 Dec 2007 20:14:33 +0000 (15:14 -0500)
committerSlava Pestov <slava@factorcode.org>
Sat, 8 Dec 2007 20:14:33 +0000 (15:14 -0500)
extra/xmode/marker/marker.factor

index fa77159f962a964848f22cb82ccbd34b4e9b1624..b22844b45b4a7e5d6aacb17a7e10d3d714629baa 100755 (executable)
@@ -65,7 +65,7 @@ M: rule match-position drop position get ;
 : rest-of-line ( -- str )
     line get position get tail-slice ;
 
-GENERIC: text-matches? ( position text -- match-count/f )
+GENERIC: text-matches? ( string text -- match-count/f )
 
 M: f text-matches?
     2drop f ;
@@ -78,7 +78,7 @@ M: string-matcher text-matches?
     ] keep string-matcher-string length and ;
 
 M: regexp text-matches?
-    match-head ;
+    >r >string r> match-head ;
 
 : rule-start-matches? ( rule -- match-count/f )
     dup rule-start tuck swap can-match-here? [