summaryrefslogtreecommitdiff
path: root/lib/coderay/scanners/php.rb
diff options
context:
space:
mode:
authormurphy <murphy@rubychan.de>2011-05-21 03:37:50 +0000
committermurphy <murphy@rubychan.de>2011-05-21 03:37:50 +0000
commit32ee1838a598a9a9c196acb2a78ab7062a63aaaa (patch)
treea5dc9de04fc5a7955b81de6ff05b172f421d19ae /lib/coderay/scanners/php.rb
parent10cd06d76d284d613c7a59a72522d50de090fba3 (diff)
downloadcoderay-32ee1838a598a9a9c196acb2a78ab7062a63aaaa.tar.gz
new method Scanner#scan_rest (upported from 0.9.8), and Scanner::ScanError is now a StandardError
Diffstat (limited to 'lib/coderay/scanners/php.rb')
-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 ed1095e..9968994 100644
--- a/lib/coderay/scanners/php.rb
+++ b/lib/coderay/scanners/php.rb
@@ -261,7 +261,7 @@ module Scanners
label_expected = true
states << :php
else
- match = scan_until(/(?=#{RE::PHP_START})/o) || scan_until(/\z/)
+ match = scan_until(/(?=#{RE::PHP_START})/o) || scan_rest
@html_scanner.tokenize match unless match.empty?
end