From: John Benediktsson Date: Mon, 31 Oct 2022 03:57:43 +0000 (-0700) Subject: help.syntax: only allow help.markup $words X-Git-Tag: 0.99~1049 X-Git-Url: https://gitweb.factorcode.org/gitweb.cgi?p=factor.git;a=commitdiff_plain;h=5ba9d22a95b03b8af82253afa2ae7eff84bb9d9b help.syntax: only allow help.markup $words --- diff --git a/basis/help/syntax/syntax.factor b/basis/help/syntax/syntax.factor index 2cb4614c6c..b45bfd3ee7 100644 --- a/basis/help/syntax/syntax.factor +++ b/basis/help/syntax/syntax.factor @@ -17,7 +17,7 @@ DEFER: HELP{ ?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 ] }