diff options
author | murphy <murphy@rubychan.de> | 2011-06-15 22:27:59 +0000 |
---|---|---|
committer | murphy <murphy@rubychan.de> | 2011-06-15 22:27:59 +0000 |
commit | 40b40b58e98f5e0c2bacf00caded953bcfec6cc4 (patch) | |
tree | 6537bbfc30d2626d885947a143d6f93796527ec4 | |
parent | 6ab9fabb3a37f968f5ad6e516dc638161a947e99 (diff) | |
download | coderay-40b40b58e98f5e0c2bacf00caded953bcfec6cc4.tar.gz |
changed :reserved to :keyword in Delphi scanner (issue #43)
-rw-r--r-- | lib/coderay/scanners/delphi.rb | 4 |
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). |