summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormurphy <murphy@rubychan.de>2010-03-30 01:15:18 +0000
committermurphy <murphy@rubychan.de>2010-03-30 01:15:18 +0000
commit431805471d6947a65f7d58aa47e7b9513421b23b (patch)
tree4502b172c7eeb893a1906a98d913471a325f8ed6
parent8f8d029f1e9ba286e43cedc274a89bae3fb318b4 (diff)
downloadcoderay-431805471d6947a65f7d58aa47e7b9513421b23b.tar.gz
Added alias :remove_comments for CommentFilter.
-rw-r--r--Changes.textile6
-rw-r--r--lib/coderay/encoders/_map.rb1
2 files changed, 6 insertions, 1 deletions
diff --git a/Changes.textile b/Changes.textile
index df6ac8e..8f295a6 100644
--- a/Changes.textile
+++ b/Changes.textile
@@ -22,13 +22,17 @@ h3. @Tokens::AbbreviationForKind@
* *REMOVED* token kinds @:attribute_name_fat@, @:attribute_value_fat@, @:operator_fat@, @:tag_fat@, and @:xml_text@.
* *ADDED* token kind @:filename@.
+h3. @Encoders::CommentFilter@
+
+* *NEW* alias @:remove_comments@.
+
h3. @Encoders::Terminal@
* *RENAMED* from @Encoders::Term@, added @:term@ alias.
* *CLEANUP*: Use @#setup@'s @super@, don't use @:procedure@ token class.
* *CHANGED*: @#token@'s second parameter is no longer optional.
-h3. @TokenKindFilter@
+h3. @Encoders::TokenKindFilter@
* *RENAMED* from @TokenClassFilter@.
diff --git a/lib/coderay/encoders/_map.rb b/lib/coderay/encoders/_map.rb
index bdffd7b..86cb4a5 100644
--- a/lib/coderay/encoders/_map.rb
+++ b/lib/coderay/encoders/_map.rb
@@ -5,6 +5,7 @@ module Encoders
:loc => :lines_of_code,
:term => :terminal,
:plain => :text,
+ :remove_comments => :comment_filter,
:stats => :statistic,
:tex => :latex