-USING: kernel tools.test parser vocabs help.syntax namespaces
-eval accessors ;
-IN: help.syntax.tests
+USING: accessors eval help.markup help.syntax kernel parser
+tools.test vocabs ;
[
[ "foobar" ] [
{ { $description } } [ HELP{ $description } ] unit-test
+{ { $description "test" } } [ HELP{ $description "test" } ] unit-test
+
+{ { $description "test " { $snippet "and" } " that" } } [
+ HELP{ $description "test " { $snippet "and" } " that" }
+] unit-test
+
{ { $description "this and that" } } [
HELP{ $description this and that }
] unit-test
PRIVATE>
SYNTAX: HELP{
- scan-word dup \ } eq? [ drop { } ] [
+ scan-object dup \ } eq? [ drop { } ] [
{
{ [ dup help-text? ] [ parse-help-text ] }
{ [ dup help-values? ] [ parse-help-values ] }