help.syntax: Don't throw a sequence error when article is defined poorly.
parent
380790f624
commit
aadb5d0b70
|
@ -1,8 +1,7 @@
|
||||||
! Copyright (C) 2005, 2009 Slava Pestov.
|
! Copyright (C) 2005, 2009 Slava Pestov.
|
||||||
! See http://factorcode.org/license.txt for BSD license.
|
! See http://factorcode.org/license.txt for BSD license.
|
||||||
USING: accessors arrays compiler.units definitions effects
|
USING: accessors arrays compiler.units definitions help
|
||||||
effects.parser help help.topics kernel namespaces parser
|
help.topics kernel math parser sequences vocabs.parser words ;
|
||||||
sequences vocabs vocabs.parser words ;
|
|
||||||
IN: help.syntax
|
IN: help.syntax
|
||||||
|
|
||||||
SYNTAX: HELP:
|
SYNTAX: HELP:
|
||||||
|
@ -11,9 +10,13 @@ SYNTAX: HELP:
|
||||||
[ [ \ ; parse-until >array ] dip set-word-help ]
|
[ [ \ ; parse-until >array ] dip set-word-help ]
|
||||||
bi ;
|
bi ;
|
||||||
|
|
||||||
|
ERROR: article-expects-name-and-title got ;
|
||||||
|
|
||||||
SYNTAX: ARTICLE:
|
SYNTAX: ARTICLE:
|
||||||
location [
|
location [
|
||||||
\ ; parse-until >array [ first2 ] [ 2 tail ] bi <article>
|
\ ; parse-until >array
|
||||||
|
dup length 2 < [ article-expects-name-and-title ] when
|
||||||
|
[ first2 ] [ 2 tail ] bi <article>
|
||||||
over add-article >link
|
over add-article >link
|
||||||
] dip remember-definition ;
|
] dip remember-definition ;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue