modern: minor cleanup

locals-and-roots
Doug Coleman 2016-06-13 13:34:30 -07:00
parent 55bc0cb1b2
commit 157297c190
1 changed files with 2 additions and 3 deletions

View File

@ -387,9 +387,8 @@ ERROR: backslash-expects-whitespace slice ;
! If the slice is 0 width, we stopped on whitespace. ! If the slice is 0 width, we stopped on whitespace.
! Advance the index and read again! ! Advance the index and read again!
: read-token-or-whitespace ( n string slice -- n' string slice ) : read-token-or-whitespace ( n string slice -- n' string slice )
dup length 0 = [ [ 1 + ] dip lex-factor ]
[ drop [ 1 + ] dip lex-factor ] [ make-tag-literal ] if-empty ;
[ make-tag-literal ] if ;
ERROR: mismatched-terminator n string slice ; ERROR: mismatched-terminator n string slice ;
: read-terminator ( n string slice -- n' string slice ) : read-terminator ( n string slice -- n' string slice )