diff options
author | murphy <murphy@rubychan.de> | 2010-05-18 06:19:53 +0000 |
---|---|---|
committer | murphy <murphy@rubychan.de> | 2010-05-18 06:19:53 +0000 |
commit | 9bab8e9248c538d92561686734d5dfae3a1bb42f (patch) | |
tree | 92cfb7b0dcb67faf477495c9823df1d6c7a5a1eb /lib/coderay/encoders/lines_of_code.rb | |
parent | f9da00a9da5fc15d08cd455884180d49417c5fe4 (diff) | |
download | coderay-9bab8e9248c538d92561686734d5dfae3a1bb42f.tar.gz |
Cleanup, documentation and enhancements to the Filters:
* TokenKindFilter handles groups (closes #223).
* Added :docstring to the default KINDS_NOT_LOC list.
* Also fixed a problem with the :tokens option in Scanners.
Diffstat (limited to 'lib/coderay/encoders/lines_of_code.rb')
-rw-r--r-- | lib/coderay/encoders/lines_of_code.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/coderay/encoders/lines_of_code.rb b/lib/coderay/encoders/lines_of_code.rb index 6b36aef..8ba82fa 100644 --- a/lib/coderay/encoders/lines_of_code.rb +++ b/lib/coderay/encoders/lines_of_code.rb @@ -21,6 +21,8 @@ module Encoders NON_EMPTY_LINE = /^\s*\S.*$/ + protected + def compile tokens, options if scanner = tokens.scanner kinds_not_loc = scanner.class::KINDS_NOT_LOC |