Fix an XMode bug exposed in the pastebin
parent
8c37cf596c
commit
fe0a71cd88
|
@ -19,3 +19,7 @@ kernel io.streams.string xml.writer ;
|
||||||
/* a comment */ "> <string-reader> htmlize-stream
|
/* a comment */ "> <string-reader> htmlize-stream
|
||||||
write-xml
|
write-xml
|
||||||
] unit-test
|
] unit-test
|
||||||
|
|
||||||
|
[ "<span class=\"MARKUP\">: foo</span> <span class=\"MARKUP\">;</span>" ] [
|
||||||
|
{ ": foo ;" } "factor" htmlize-lines xml>string
|
||||||
|
] 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 re-contains? ;
|
[ >string ] dip first-match to>> ;
|
||||||
|
|
||||||
: 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