summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKornelius Kalnbach <murphy@rubychan.de>2013-02-17 21:55:33 +0100
committerKornelius Kalnbach <murphy@rubychan.de>2013-02-17 21:55:33 +0100
commited9ed685aa695f0f5601df573b05f1bdc03320f5 (patch)
tree2684feef281b572d8583e32531f8b4c2b04969cc
parentd666db48604418eed5aaf76669375e2c9b2bd101 (diff)
downloadcoderay-ed9ed685aa695f0f5601df573b05f1bdc03320f5.tar.gz
fix PHP scanner for Ruby 1.8
-rw-r--r--lib/coderay/scanners/php.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/coderay/scanners/php.rb b/lib/coderay/scanners/php.rb
index 3f7ff6a..6c68834 100644
--- a/lib/coderay/scanners/php.rb
+++ b/lib/coderay/scanners/php.rb
@@ -210,7 +210,7 @@ module Scanners
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 = /