summaryrefslogtreecommitdiff
path: root/lib/coderay/scanners/nitro_xhtml.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/coderay/scanners/nitro_xhtml.rb')
-rw-r--r--lib/coderay/scanners/nitro_xhtml.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/coderay/scanners/nitro_xhtml.rb b/lib/coderay/scanners/nitro_xhtml.rb
index cf8c5aa..b67b60c 100644
--- a/lib/coderay/scanners/nitro_xhtml.rb
+++ b/lib/coderay/scanners/nitro_xhtml.rb
@@ -89,7 +89,7 @@ module Scanners
until eos?
- if (match = scan_until(/(?=#{START_OF_RUBY})/o) || match = scan_until(/\z/)) and not match.empty?
+ if (match = scan_until(/(?=#{START_OF_RUBY})/o) || scan_rest) and not match.empty?
@html_scanner.tokenize match
elsif match = scan(/#{NITRO_VALUE_BLOCK}/o)