From 39b959936061ed7cad36a969bddae22faf98ebb8 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Thu, 7 Mar 2013 04:07:09 +0000 Subject: [PATCH] use %r{} instead of // at lib/redmine/unified_diff.rb Syntax highlight is broken in gedit 2.28.4 on CentOS 6. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11542 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- lib/redmine/unified_diff.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/redmine/unified_diff.rb b/lib/redmine/unified_diff.rb index 7215cb5b9..9917a554f 100644 --- a/lib/redmine/unified_diff.rb +++ b/lib/redmine/unified_diff.rb @@ -83,7 +83,7 @@ module Redmine @parsing = true end else - if line =~ /^[^\+\-\s@\\]/ + if line =~ %r{^[^\+\-\s@\\]} @parsing = false return false elsif line =~ /^@@ (\+|\-)(\d+)(,\d+)? (\+|\-)(\d+)(,\d+)? @@/