diff options
author | murphy <murphy@rubychan.de> | 2011-05-21 03:37:50 +0000 |
---|---|---|
committer | murphy <murphy@rubychan.de> | 2011-05-21 03:37:50 +0000 |
commit | 32ee1838a598a9a9c196acb2a78ab7062a63aaaa (patch) | |
tree | a5dc9de04fc5a7955b81de6ff05b172f421d19ae /lib/coderay/scanners/nitro_xhtml.rb | |
parent | 10cd06d76d284d613c7a59a72522d50de090fba3 (diff) | |
download | coderay-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/nitro_xhtml.rb')
-rw-r--r-- | lib/coderay/scanners/nitro_xhtml.rb | 2 |
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) |