Skip to content

Commit

Permalink
help.syntax: Don't throw a sequence error when article is defined poo…
Browse files Browse the repository at this point in the history
…rly.
  • Loading branch information
erg committed Jun 30, 2015
1 parent 380790f commit aadb5d0
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions basis/help/syntax/syntax.factor
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
! Copyright (C) 2005, 2009 Slava Pestov.
! See http://factorcode.org/license.txt for BSD license.
USING: accessors arrays compiler.units definitions effects
effects.parser help help.topics kernel namespaces parser
sequences vocabs vocabs.parser words ;
USING: accessors arrays compiler.units definitions help
help.topics kernel math parser sequences vocabs.parser words ;
IN: help.syntax

SYNTAX: HELP:
Expand All @@ -11,9 +10,13 @@ SYNTAX: HELP:
[ [ \ ; parse-until >array ] dip set-word-help ]
bi ;

ERROR: article-expects-name-and-title got ;

SYNTAX: ARTICLE:
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
] dip remember-definition ;

Expand Down

0 comments on commit aadb5d0

Please sign in to comment.