summaryrefslogtreecommitdiff
path: root/lib/coderay/scanners
diff options
context:
space:
mode:
authorKornelius Kalnbach <murphy@rubychan.de>2012-06-25 09:56:30 +0200
committerKornelius Kalnbach <murphy@rubychan.de>2012-06-25 09:56:30 +0200
commit5c5954d3dbcb9576fbd17a12d70014a9bef91a14 (patch)
tree43dc98d13276fdf1c4f47786b4f4b65f8d810e10 /lib/coderay/scanners
parent5598df049e8823f9838b348e76227ef836c4e39b (diff)
parenta4b8b094da5525354cb8a927761385825236c5a1 (diff)
downloadcoderay-5c5954d3dbcb9576fbd17a12d70014a9bef91a14.tar.gz
Merge branch 'master' into multiline-inline-diff
Diffstat (limited to 'lib/coderay/scanners')
-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