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/nitro_xhtml.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/coderay/scanners/nitro_xhtml.rb') 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) -- cgit v1.2.1