modern: Handle ``3</foo>``
parent
14216fd486
commit
72833e950a
|
@ -219,6 +219,15 @@ ERROR: unexpected-terminator n string slice ;
|
||||||
[ ">" tail? ]
|
[ ">" tail? ]
|
||||||
} 1&& ;
|
} 1&& ;
|
||||||
|
|
||||||
|
: special-acute? ( string -- ? )
|
||||||
|
{
|
||||||
|
[ section-open? ]
|
||||||
|
[ html-self-close? ]
|
||||||
|
[ html-full-open? ]
|
||||||
|
[ html-half-open? ]
|
||||||
|
[ html-close? ]
|
||||||
|
} 1|| ;
|
||||||
|
|
||||||
: upper-colon? ( string -- ? )
|
: upper-colon? ( string -- ? )
|
||||||
dup { [ length 0 > ] [ [ char: \: = ] all? ] } 1&& [
|
dup { [ length 0 > ] [ [ char: \: = ] all? ] } 1&& [
|
||||||
drop t
|
drop t
|
||||||
|
@ -304,7 +313,7 @@ ERROR: colon-word-must-be-all-uppercase-or-lowercase n string word ;
|
||||||
{ [ dup html-close? ] [
|
{ [ dup html-close? ] [
|
||||||
! Do nothing
|
! Do nothing
|
||||||
] }
|
] }
|
||||||
! [ B ]
|
[ [ slice-til-whitespace drop ] dip span-slices ]
|
||||||
} cond ;
|
} cond ;
|
||||||
|
|
||||||
! Words like append! and suffix! are allowed for now.
|
! Words like append! and suffix! are allowed for now.
|
||||||
|
|
Loading…
Reference in New Issue