]> gitweb.factorcode.org Git - factor.git/commitdiff
vocabs.parser: fix with-words.
authorJohn Benediktsson <mrjbq7@gmail.com>
Tue, 15 Dec 2020 21:22:06 +0000 (13:22 -0800)
committerJohn Benediktsson <mrjbq7@gmail.com>
Tue, 15 Dec 2020 21:22:06 +0000 (13:22 -0800)
Got the cleanup quots backwards, need to be cleanup-always.

core/vocabs/parser/parser.factor

index 2cbd038c358e6461bc51a164559ef2af507fbb32..459e6ec6516c6c237886bed07c925f21d15a76d1 100644 (file)
@@ -176,7 +176,7 @@ TUPLE: rename word vocab words ;
     <extra-words> qualified-vocabs remove! drop ;
 
 : with-words ( assoc quot -- )
-    [ use-words ] prepose [ ] pick '[ _ unuse-words ] cleanup ; inline
+    [ use-words ] prepose over '[ _ unuse-words ] [ ] cleanup ; inline
 
 TUPLE: ambiguous-use-error name words ;