summaryrefslogtreecommitdiff
path: root/lib/coderay/scanners/rhtml.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/rhtml.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/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)