summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorKornelius Kalnbach <murphy@rubychan.de>2012-06-19 16:48:06 +0200
committerKornelius Kalnbach <murphy@rubychan.de>2012-06-19 16:48:06 +0200
commit3ebeee9c8a667a796d2940e23c3ef26381f1e2d3 (patch)
treed104ee4f63aa8fedbda4823a57a220a9bf4ff30a /lib
parent27e8836893974434ff4f54273a3b59b4ce86f74c (diff)
downloadcoderay-3ebeee9c8a667a796d2940e23c3ef26381f1e2d3.tar.gz
HTML scanner accepts boolean attributes; fixes issue #26
Diffstat (limited to 'lib')
-rw-r--r--lib/coderay/scanners/html.rb5
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/coderay/scanners/html.rb b/lib/coderay/scanners/html.rb
index 98d06fc..733dd6f 100644
--- a/lib/coderay/scanners/html.rb
+++ b/lib/coderay/scanners/html.rb
@@ -149,12 +149,9 @@ module Scanners
if match = scan(/=/) #/
encoder.text_token match, :operator
state = :attribute_value
- elsif scan(/#{ATTR_NAME}/o) || scan(/#{TAG_END}/o)
- state = :attribute
- next
else
- encoder.text_token getch, :error
state = :attribute
+ next
end
when :attribute_value