summaryrefslogtreecommitdiff
path: root/lib/coderay/scanners/php.rb
diff options
context:
space:
mode:
authormurphy <murphy@rubychan.de>2009-10-20 10:10:00 +0000
committermurphy <murphy@rubychan.de>2009-10-20 10:10:00 +0000
commita8163c39206fd11ef30ef8efb2c73a6f6a97e424 (patch)
tree33323edcb67c4d3e14572fd789313aa68f080839 /lib/coderay/scanners/php.rb
parent33e60373f5e19a70b3e5b7b6af29308555c628ec (diff)
downloadcoderay-a8163c39206fd11ef30ef8efb2c73a6f6a97e424.tar.gz
Made FileType work with Pathname (closes #118).
Diffstat (limited to 'lib/coderay/scanners/php.rb')
-rw-r--r--lib/coderay/scanners/php.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/coderay/scanners/php.rb b/lib/coderay/scanners/php.rb
index 8949eff..700c7cb 100644
--- a/lib/coderay/scanners/php.rb
+++ b/lib/coderay/scanners/php.rb
@@ -249,6 +249,7 @@ module Scanners
elsif match = scan(RE::IDENTIFIER)
kind = Words::IDENT_KIND[match]
if kind == :ident && check(/:(?!:)/) #&& tokens[-2][0] == 'case'
+ # FIXME: don't match a?b:c
kind = :label
elsif kind == :ident && match =~ /^[A-Z]/
kind = :constant