summaryrefslogtreecommitdiff
path: root/lib/coderay/scanners/delphi.rb
diff options
context:
space:
mode:
authormurphy <murphy@rubychan.de>2005-11-05 03:09:21 +0000
committermurphy <murphy@rubychan.de>2005-11-05 03:09:21 +0000
commitee9c870bfbb4032ca08c1f1760716b5472b64293 (patch)
tree694a7b3deddcfdcf0c1122ed7b640aebbc9bbb10 /lib/coderay/scanners/delphi.rb
parentc3dfbc335b14012df9968c6d64221cced3d444b6 (diff)
downloadcoderay-ee9c870bfbb4032ca08c1f1760716b5472b64293.tar.gz
helpers/word_list.rb:
new CaseIgnoringWordList class simplified implementation Performance gain should be small. Adjusted scanner.rb and scanners/delphi.rb
Diffstat (limited to 'lib/coderay/scanners/delphi.rb')
-rw-r--r--lib/coderay/scanners/delphi.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/coderay/scanners/delphi.rb b/lib/coderay/scanners/delphi.rb
index 4c03147..77c3839 100644
--- a/lib/coderay/scanners/delphi.rb
+++ b/lib/coderay/scanners/delphi.rb
@@ -28,7 +28,7 @@ module CodeRay module Scanners
'virtual', 'write', 'writeonly'
]
- IDENT_KIND = Scanner::WordList.new(:ident, :case_ignore).
+ IDENT_KIND = CaseIgnoringWordList.new(:ident).
add(RESERVED_WORDS, :reserved).
add(DIRECTIVES, :directive)