Permalink
Browse files

fix PHP scanner for Ruby 1.8

  • Loading branch information...
1 parent d666db4 commit ed9ed685aa695f0f5601df573b05f1bdc03320f5 @korny korny committed Feb 17, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/coderay/scanners/php.rb
@@ -210,7 +210,7 @@ module RE # :nodoc:
HTML_INDICATOR = /<!DOCTYPE html|<(?:html|body|div|p)[> ]/i
- IDENTIFIER = 'ä'[/[[:alpha:]]/] == 'ä' ? Regexp.new('[[:alpha:]_[^\0-\177]][[:alnum:]_[^\0-\177]]*') : Regexp.new('[a-z_\17f-\xFF][a-z0-9_\x7f-\xFF]*/', true)
+ IDENTIFIER = 'ä'[/[[:alpha:]]/] == 'ä' ? Regexp.new('[[:alpha:]_[^\0-\177]][[:alnum:]_[^\0-\177]]*') : Regexp.new('[a-z_\x7f-\xFF][a-z0-9_\x7f-\xFF]*', true)
VARIABLE = /\$#{IDENTIFIER}/
OPERATOR = /

0 comments on commit ed9ed68

Please sign in to comment.