modern: handle \[[ \[=[
parent
161a50c0b8
commit
39a9b21e98
|
@ -88,3 +88,6 @@ IN: modern.tests
|
||||||
|
|
||||||
{ { { "\\" "(" } } } [ "\\ (" string>literals >strings ] unit-test
|
{ { { "\\" "(" } } } [ "\\ (" string>literals >strings ] unit-test
|
||||||
|
|
||||||
|
{ { "\\[[" } } [ "\\[[" string>literals >strings ] unit-test
|
||||||
|
{ { "\\[=[" } } [ "\\[=[" string>literals >strings ] unit-test
|
||||||
|
{ { "\\[==[" } } [ "\\[==[" string>literals >strings ] unit-test
|
|
@ -275,7 +275,7 @@ ERROR: mismatched-terminator n string slice ;
|
||||||
[ "\"!:[{(<>\s\r\n" slice-til-either ] dip swap [ span-slices ] dip
|
[ "\"!:[{(<>\s\r\n" slice-til-either ] dip swap [ span-slices ] dip
|
||||||
over "\\" head? [
|
over "\\" head? [
|
||||||
drop
|
drop
|
||||||
dup "\\" sequence= [ read-backslash ] when
|
dup "\\" sequence= [ read-backslash ] [ merge-slice-til-whitespace ] if
|
||||||
] [
|
] [
|
||||||
(lex-factor)
|
(lex-factor)
|
||||||
] if
|
] if
|
||||||
|
|
Loading…
Reference in New Issue