?scan-token dup {
[ "{" = [ \ HELP{ ] [ f ] if ]
[ "syntax" lookup-word ]
- [ "help.markup" lookup-word ]
+ [ { [ "$" head? ] [ "help.markup" lookup-word ] } 1&& ]
[ dup ?last ":{[(/\"" member-eq? [ search ] [ drop f ] if ]
} 1|| {
{ [ dup not ] [ drop ] }
: trim-whitespace ( seq -- seq' )
dup rest-slice dup whitespace
- [ '[ _ short tail ] map! ] unless-zero drop
+ [ '[ _ index-or-length tail ] map! ] unless-zero drop
0 over [ [ blank? ] trim-head ] change-nth ;
: code-lines ( str -- seq )