diff options
author | murphy <murphy@rubychan.de> | 2011-06-15 22:37:21 +0000 |
---|---|---|
committer | murphy <murphy@rubychan.de> | 2011-06-15 22:37:21 +0000 |
commit | bd0a55b5090ce0d49055ed09cae3977cb8770faf (patch) | |
tree | 3c59059843428b815a09ea5a395482b9ae66d597 /lib/coderay/scanners/php.rb | |
parent | 40b40b58e98f5e0c2bacf00caded953bcfec6cc4 (diff) | |
download | coderay-bd0a55b5090ce0d49055ed09cae3977cb8770faf.tar.gz |
changed :reserved to :keyword in PHP scanner (issue #43)
Diffstat (limited to 'lib/coderay/scanners/php.rb')
-rw-r--r-- | lib/coderay/scanners/php.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/coderay/scanners/php.rb b/lib/coderay/scanners/php.rb index 9968994..ea9a8c8 100644 --- a/lib/coderay/scanners/php.rb +++ b/lib/coderay/scanners/php.rb @@ -182,9 +182,9 @@ module Scanners ] IDENT_KIND = CaseIgnoringWordList.new(:ident). - add(KEYWORDS, :reserved). + add(KEYWORDS, :keyword). add(TYPES, :predefined_type). - add(LANGUAGE_CONSTRUCTS, :reserved). + add(LANGUAGE_CONSTRUCTS, :keyword). add(BUILTIN_FUNCTIONS, :predefined). add(CLASSES, :predefined_constant). add(EXCEPTIONS, :exception). @@ -281,7 +281,7 @@ module Scanners label_expected = false if kind == :ident && match =~ /^[A-Z]/ kind = :constant - elsif kind == :reserved + elsif kind == :keyword case match when 'class' states << :class_expected |