From 3ebeee9c8a667a796d2940e23c3ef26381f1e2d3 Mon Sep 17 00:00:00 2001 From: Kornelius Kalnbach Date: Tue, 19 Jun 2012 16:48:06 +0200 Subject: HTML scanner accepts boolean attributes; fixes issue #26 --- lib/coderay/scanners/html.rb | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'lib/coderay') 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 -- cgit v1.2.1