From a8163c39206fd11ef30ef8efb2c73a6f6a97e424 Mon Sep 17 00:00:00 2001 From: murphy Date: Tue, 20 Oct 2009 10:10:00 +0000 Subject: Made FileType work with Pathname (closes #118). --- lib/coderay/scanners/php.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/coderay/scanners/php.rb') 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 -- cgit v1.2.1