summaryrefslogtreecommitdiff
path: root/lib/coderay
diff options
context:
space:
mode:
Diffstat (limited to 'lib/coderay')
-rw-r--r--lib/coderay/scanners/php.rb6
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