From 6ebdf848a583add999e9f27a5d1a0bf4009d478d Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Thu, 29 May 2008 19:12:17 +0000 Subject: [PATCH] Fixed: Unable to use angular braces after include word in c code highlighting (#1230). git-svn-id: http://redmine.rubyforge.org/svn/trunk@1476 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- vendor/plugins/coderay-0.7.6.227/lib/coderay/scanners/c.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vendor/plugins/coderay-0.7.6.227/lib/coderay/scanners/c.rb b/vendor/plugins/coderay-0.7.6.227/lib/coderay/scanners/c.rb index f6d71ade2..e5d87b233 100644 --- a/vendor/plugins/coderay-0.7.6.227/lib/coderay/scanners/c.rb +++ b/vendor/plugins/coderay-0.7.6.227/lib/coderay/scanners/c.rb @@ -122,7 +122,7 @@ module Scanners end when :include_expected - if scan(/<[^>\n]+>?|"[^"\n\\]*(?:\\.[^"\n\\]*)*"?/) + if scan(/[^\n]+/) kind = :include state = :initial