./lib/coderay/scanners/nitro_xhtml.rb in coderay-0.8.357 vs ./lib/coderay/scanners/nitro_xhtml.rb in coderay-0.9.1
- old
+ new
@@ -8,11 +8,14 @@
class NitroXHTML < Scanner
include Streamable
register_for :nitro_xhtml
file_extension :xhtml
+ title 'Nitro XHTML'
+ KINDS_NOT_LOC = HTML::KINDS_NOT_LOC
+
NITRO_RUBY_BLOCK = /
<\?r
(?>
[^\?]*
(?> \?(?!>) [^\?]* )*
@@ -116,9 +119,10 @@
elsif scan(/%/)
tokens << [matched, :error]
else
raise_inspect 'else-case reached!', tokens
+
end
end
tokens