From 32ee1838a598a9a9c196acb2a78ab7062a63aaaa Mon Sep 17 00:00:00 2001 From: murphy Date: Sat, 21 May 2011 03:37:50 +0000 Subject: new method Scanner#scan_rest (upported from 0.9.8), and Scanner::ScanError is now a StandardError --- lib/coderay/scanners/php.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/coderay/scanners/php.rb') 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 -- cgit v1.2.1