diff options
author | murphy <murphy@rubychan.de> | 2009-10-20 10:10:00 +0000 |
---|---|---|
committer | murphy <murphy@rubychan.de> | 2009-10-20 10:10:00 +0000 |
commit | a8163c39206fd11ef30ef8efb2c73a6f6a97e424 (patch) | |
tree | 33323edcb67c4d3e14572fd789313aa68f080839 /lib/coderay/scanners/php.rb | |
parent | 33e60373f5e19a70b3e5b7b6af29308555c628ec (diff) | |
download | coderay-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.rb | 1 |
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 |