Fix another XMode bug

db4
Slava Pestov 2009-03-28 22:19:55 -05:00
parent 2344660811
commit 602fe353e8
2 changed files with 5 additions and 1 deletions

View File

@ -23,3 +23,7 @@ kernel io.streams.string xml.writer ;
[ "<span class=\"MARKUP\">: foo</span> <span class=\"MARKUP\">;</span>" ] [
{ ": foo ;" } "factor" htmlize-lines xml>string
] unit-test
[ ":foo" ] [
{ ":foo" } "factor" htmlize-lines xml>string
] unit-test

View File

@ -84,7 +84,7 @@ M: string-matcher text-matches?
] keep string>> length and ;
M: regexp text-matches?
[ >string ] dip first-match to>> ;
[ >string ] dip first-match dup [ to>> ] when ;
: rule-start-matches? ( rule -- match-count/f )
dup start>> tuck swap can-match-here? [