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.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/coderay/scanners/nitro_xhtml.rb b/lib/coderay/scanners/nitro_xhtml.rb
index baef162..19354d9 100644
--- a/lib/coderay/scanners/nitro_xhtml.rb
+++ b/lib/coderay/scanners/nitro_xhtml.rb
@@ -113,6 +113,9 @@ module Scanners
elsif entity = scan(/#{NITRO_ENTITY}/o)
tokens << [entity, :entity]
+
+ elsif scan(/%/)
+ tokens << [matched, :error]
else
raise_inspect 'else-case reached!', tokens