diff options
Diffstat (limited to 'lib/coderay/scanners/php.rb')
-rw-r--r-- | lib/coderay/scanners/php.rb | 2 |
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 |