summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormurphy <murphy@rubychan.de>2009-12-30 07:13:23 +0000
committermurphy <murphy@rubychan.de>2009-12-30 07:13:23 +0000
commita07acba0881ee376f94bd6f0a731d44e7e2a3419 (patch)
tree551d4fd37dc2f2b07f013005c0ed257b22c17fd5
parent7550bba0a46f791bf4e052617542a33250ca5cd3 (diff)
downloadcoderay-a07acba0881ee376f94bd6f0a731d44e7e2a3419.tar.gz
Don't cache the CaseIgnoringWordLists.
-rw-r--r--lib/coderay/scanners/delphi.rb4
-rw-r--r--lib/coderay/scanners/php.rb2
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).