summaryrefslogtreecommitdiff
path: root/lib/coderay/scanners/delphi.rb
diff options
context:
space:
mode:
authormurphy <murphy@rubychan.de>2011-06-15 22:27:59 +0000
committermurphy <murphy@rubychan.de>2011-06-15 22:27:59 +0000
commit40b40b58e98f5e0c2bacf00caded953bcfec6cc4 (patch)
tree6537bbfc30d2626d885947a143d6f93796527ec4 /lib/coderay/scanners/delphi.rb
parent6ab9fabb3a37f968f5ad6e516dc638161a947e99 (diff)
downloadcoderay-40b40b58e98f5e0c2bacf00caded953bcfec6cc4.tar.gz
changed :reserved to :keyword in Delphi scanner (issue #43)
Diffstat (limited to 'lib/coderay/scanners/delphi.rb')
-rw-r--r--lib/coderay/scanners/delphi.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/coderay/scanners/delphi.rb b/lib/coderay/scanners/delphi.rb
index e0f4ea1..1361869 100644
--- a/lib/coderay/scanners/delphi.rb
+++ b/lib/coderay/scanners/delphi.rb
@@ -9,7 +9,7 @@ module Scanners
register_for :delphi
file_extension 'pas'
- RESERVED_WORDS = [
+ KEYWORDS = [
'and', 'array', 'as', 'at', 'asm', 'at', 'begin', 'case', 'class',
'const', 'constructor', 'destructor', 'dispinterface', 'div', 'do',
'downto', 'else', 'end', 'except', 'exports', 'file', 'finalization',
@@ -34,7 +34,7 @@ module Scanners
] # :nodoc:
IDENT_KIND = CaseIgnoringWordList.new(:ident).
- add(RESERVED_WORDS, :reserved).
+ add(KEYWORDS, :keyword).
add(DIRECTIVES, :directive) # :nodoc:
NAME_FOLLOWS = CaseIgnoringWordList.new(false).