From 78eea5071bb8c5ca67394383ba3c34b7d5f60529 Mon Sep 17 00:00:00 2001 From: Doug Coleman Date: Sat, 2 Dec 2017 08:06:38 -0600 Subject: [PATCH] annotations: Use SAME-FUNCTOR: to put in the annotations vocab. --- extra/annotations/annotations-docs.factor | 3 ++ extra/annotations/annotations.factor | 45 ++++++++++++----------- 2 files changed, 26 insertions(+), 22 deletions(-) diff --git a/extra/annotations/annotations-docs.factor b/extra/annotations/annotations-docs.factor index 0d37672fe3..a3c8c7208b 100644 --- a/extra/annotations/annotations-docs.factor +++ b/extra/annotations/annotations-docs.factor @@ -3,6 +3,7 @@ help help.markup help.topics kernel sequences sorting vocabs words combinators.smart tools.crossref ; IN: annotations +![=[ new-word SAME-FUNCTOR: ; IN: annotations << @@ -14,30 +14,31 @@ IN: annotations [ { [ word? ] [ vocabulary>> "annotations" = ] } 1&& not ] filter ; - +: ${NAME}s. ( -- ) + ${NAME}s sorted-definitions. ; -CONSTANT: annotation-tags { - "XXX" "TODO" "FIXME" "BUG" "REVIEW" "LICENSE" - "AUTHOR" "BROKEN" "HACK" "LOL" "NOTE" -} - -annotation-tags [ define-annotation ] each +]] +SYNTAX: \ANNOTATIONS: ";" [ define-annotation ] each-token ; >> + +! SYMBOLS: XXX TODO FIXME BUG REVIEW LICENSE + ! AUTHOR BROKEN HACK LOL NOTE ; + +! CONSTANT: annotation-tags { + ! XXX TODO FIXME BUG REVIEW LICENSE + ! AUTHOR BROKEN HACK LOL NOTE +! } + +ANNOTATIONS: XXX TODO FIXME BUG REVIEW LICENSE AUTHOR BROKEN HACK LOL NOTE ;