comparison .svn/pristine/ff/ff7c7a78022ec834d13d1e81c3b7d935dfcd48bf.svn-base @ 909:cbb26bc654de redmine-1.3

Update to Redmine 1.3-stable branch (Redmine SVN rev 8964)
author Chris Cannam
date Fri, 24 Feb 2012 19:09:32 +0000
parents
children
comparison
equal deleted inserted replaced
908:c6c2cbd0afee 909:cbb26bc654de
1 module CodeRay
2 module Encoders
3
4 load :token_kind_filter
5
6 # A simple Filter that removes all tokens of the :comment kind.
7 #
8 # Alias: +remove_comments+
9 #
10 # Usage:
11 # CodeRay.scan('print # foo', :ruby).comment_filter.text
12 # #-> "print "
13 #
14 # See also: TokenKindFilter, LinesOfCode
15 class CommentFilter < TokenKindFilter
16
17 register_for :comment_filter
18
19 DEFAULT_OPTIONS = superclass::DEFAULT_OPTIONS.merge \
20 :exclude => [:comment, :docstring]
21
22 end
23
24 end
25 end