diff options
author | murphy <murphy@rubychan.de> | 2009-12-30 07:13:23 +0000 |
---|---|---|
committer | murphy <murphy@rubychan.de> | 2009-12-30 07:13:23 +0000 |
commit | a07acba0881ee376f94bd6f0a731d44e7e2a3419 (patch) | |
tree | 551d4fd37dc2f2b07f013005c0ed257b22c17fd5 /lib | |
parent | 7550bba0a46f791bf4e052617542a33250ca5cd3 (diff) | |
download | coderay-a07acba0881ee376f94bd6f0a731d44e7e2a3419.tar.gz |
Don't cache the CaseIgnoringWordLists.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/coderay/scanners/delphi.rb | 4 | ||||
-rw-r--r-- | lib/coderay/scanners/php.rb | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/coderay/scanners/delphi.rb b/lib/coderay/scanners/delphi.rb index 0975b26..fe91ae9 100644 --- a/lib/coderay/scanners/delphi.rb +++ b/lib/coderay/scanners/delphi.rb @@ -30,11 +30,11 @@ module Scanners 'virtual', 'write', 'writeonly' ] - IDENT_KIND = CaseIgnoringWordList.new(:ident, caching=true). + IDENT_KIND = CaseIgnoringWordList.new(:ident). add(RESERVED_WORDS, :reserved). add(DIRECTIVES, :directive) - NAME_FOLLOWS = CaseIgnoringWordList.new(false, caching=true). + NAME_FOLLOWS = CaseIgnoringWordList.new(false). add(%w(procedure function .)) private diff --git a/lib/coderay/scanners/php.rb b/lib/coderay/scanners/php.rb index af9e16f..41f217d 100644 --- a/lib/coderay/scanners/php.rb +++ b/lib/coderay/scanners/php.rb @@ -176,7 +176,7 @@ module Scanners $argc $argv ] - IDENT_KIND = CaseIgnoringWordList.new(:ident, true). + IDENT_KIND = CaseIgnoringWordList.new(:ident). add(KEYWORDS, :reserved). add(TYPES, :pre_type). add(LANGUAGE_CONSTRUCTS, :reserved). |