From 08821f38ea9b8b98faa8fa943cf1eb680459bd63 Mon Sep 17 00:00:00 2001 From: John Benediktsson Date: Mon, 24 Sep 2012 15:06:54 -0700 Subject: [PATCH] tools.completion: adding colors-matching. --- basis/tools/completion/completion.factor | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/basis/tools/completion/completion.factor b/basis/tools/completion/completion.factor index 40048409d0..f3dcb53eac 100644 --- a/basis/tools/completion/completion.factor +++ b/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 ;