Fix another XMode bug
parent
2344660811
commit
602fe353e8
|
@ -22,4 +22,8 @@ kernel io.streams.string xml.writer ;
|
||||||
|
|
||||||
[ "<span class=\"MARKUP\">: foo</span> <span class=\"MARKUP\">;</span>" ] [
|
[ "<span class=\"MARKUP\">: foo</span> <span class=\"MARKUP\">;</span>" ] [
|
||||||
{ ": foo ;" } "factor" htmlize-lines xml>string
|
{ ": foo ;" } "factor" htmlize-lines xml>string
|
||||||
|
] unit-test
|
||||||
|
|
||||||
|
[ ":foo" ] [
|
||||||
|
{ ":foo" } "factor" htmlize-lines xml>string
|
||||||
] unit-test
|
] unit-test
|
|
@ -84,7 +84,7 @@ M: string-matcher text-matches?
|
||||||
] keep string>> length and ;
|
] keep string>> length and ;
|
||||||
|
|
||||||
M: regexp text-matches?
|
M: regexp text-matches?
|
||||||
[ >string ] dip first-match to>> ;
|
[ >string ] dip first-match dup [ to>> ] when ;
|
||||||
|
|
||||||
: rule-start-matches? ( rule -- match-count/f )
|
: rule-start-matches? ( rule -- match-count/f )
|
||||||
dup start>> tuck swap can-match-here? [
|
dup start>> tuck swap can-match-here? [
|
||||||
|
|
Loading…
Reference in New Issue