Permalink
Browse files

tools.completion: adding colors-matching.

  • Loading branch information...
mrjbq7 committed Sep 24, 2012
1 parent 3eb7a6e commit f2a1ec7d848cfaaf04638bbcd80ad0a4a8e991c7
Showing with 6 additions and 4 deletions.
  1. +6 −4 basis/tools/completion/completion.factor
@@ -1,10 +1,10 @@
! Copyright (C) 2005, 2009 Slava Pestov.
! See http://factorcode.org/license.txt for BSD license.
-USING: accessors arrays assocs combinators fry io kernel locals
-make math math.order namespaces sequences sorting strings
-unicode.case unicode.categories unicode.data vectors vocabs
-vocabs.hierarchy words ;
+USING: accessors arrays assocs colors.constants combinators fry
+io kernel locals make math math.order namespaces sequences
+sorting strings unicode.case unicode.categories unicode.data
+vectors vocabs vocabs.hierarchy words ;
IN: tools.completion
@@ -95,3 +95,5 @@ PRIVATE>
: chars-matching ( str -- seq )
name-map keys dup zip completions ;
+: colors-matching ( str -- seq )
+ named-colors dup zip completions ;

0 comments on commit f2a1ec7

Please sign in to comment.