From 72a8989da58b16566558a373a4cf582cd36b3872 Mon Sep 17 00:00:00 2001 From: murphy Date: Wed, 28 Jun 2006 23:05:18 +0000 Subject: Fix: HTML Scanner: Fixed a nasty bug with invalid entities. Thanks to Daniel Bovensiepen. Scanner: added Scanner.normify. Plugin: small documentation fix. Code statistic: added lib root folder rake_helpers/code_statistics.rb: added ability to include non-Ruby code in the statistics used it to count the mountain of test data There is some mixed space/tab indentation now. Complete 2-space-re-indentation will follow. --- lib/coderay/scanners/html.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/coderay/scanners') diff --git a/lib/coderay/scanners/html.rb b/lib/coderay/scanners/html.rb index f37a8dd..cbf8a55 100644 --- a/lib/coderay/scanners/html.rb +++ b/lib/coderay/scanners/html.rb @@ -74,7 +74,7 @@ module Scanners kind = :plain elsif scan(/#{ENTITY}/ox) kind = :entity - elsif scan(/>/) + elsif scan(/[>&]/) kind = :error else raise_inspect '[BUG] else-case reached with state %p' % [state], tokens -- cgit v1.2.1