From bd0a55b5090ce0d49055ed09cae3977cb8770faf Mon Sep 17 00:00:00 2001 From: murphy Date: Wed, 15 Jun 2011 22:37:21 +0000 Subject: changed :reserved to :keyword in PHP scanner (issue #43) --- lib/coderay/scanners/php.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/coderay/scanners/php.rb') 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 -- cgit v1.2.1