summaryrefslogtreecommitdiff
path: root/lib/coderay/scanners/rhtml.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/coderay/scanners/rhtml.rb')
-rw-r--r--lib/coderay/scanners/rhtml.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/coderay/scanners/rhtml.rb b/lib/coderay/scanners/rhtml.rb
index 2403edf..9bfab5c 100644
--- a/lib/coderay/scanners/rhtml.rb
+++ b/lib/coderay/scanners/rhtml.rb
@@ -44,7 +44,7 @@ module Scanners
until eos?
- if (match = scan_until(/(?=#{START_OF_ERB})/o) || scan_until(/\z/)) and not match.empty?
+ if (match = scan_until(/(?=#{START_OF_ERB})/o) || scan_rest) and not match.empty?
@html_scanner.tokenize match, :tokens => encoder
elsif match = scan(/#{ERB_RUBY_BLOCK}/o)