summaryrefslogtreecommitdiff
path: root/lib/coderay/scanners/html.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/coderay/scanners/html.rb')
-rw-r--r--lib/coderay/scanners/html.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/coderay/scanners/html.rb b/lib/coderay/scanners/html.rb
index 181e5d3..5f647d3 100644
--- a/lib/coderay/scanners/html.rb
+++ b/lib/coderay/scanners/html.rb
@@ -107,6 +107,7 @@ module Scanners
kind = :tag
state = :initial
elsif scan(/./)
+ kind = :error
state = :attribute
end
@@ -137,6 +138,8 @@ module Scanners
next
elsif scan(/#{ENTITY}/ox)
kind = :entity
+ elsif scan(/&/)
+ kind = :content
elsif scan(/[\n>]/)
tokens << [:close, :string]
kind = :error