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
This commit is contained in:
parent
5984adc3df
commit
39b9599360
|
@ -83,7 +83,7 @@ module Redmine
|
||||||
@parsing = true
|
@parsing = true
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
if line =~ /^[^\+\-\s@\\]/
|
if line =~ %r{^[^\+\-\s@\\]}
|
||||||
@parsing = false
|
@parsing = false
|
||||||
return false
|
return false
|
||||||
elsif line =~ /^@@ (\+|\-)(\d+)(,\d+)? (\+|\-)(\d+)(,\d+)? @@/
|
elsif line =~ /^@@ (\+|\-)(\d+)(,\d+)? (\+|\-)(\d+)(,\d+)? @@/
|
||||||
|
|
Loading…
Reference in New Issue