Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRubén Dávila <rdavila84@gmail.com>2016-01-08 23:17:45 +0300
committerRubén Dávila <rdavila84@gmail.com>2016-01-08 23:20:48 +0300
commit6282202ee84f80f2197698b6f132abdf588e94d4 (patch)
tree0abfd18aeeb35146e966742c4603ab7cd937e904 /lib/gitlab/diff
parent21b602c60ad787b63039d804a5e15b43d0d3c32c (diff)
Remove custom Lexer. #3945 [ci skip]
Inline diff is going to be generated client side now. #3945
Diffstat (limited to 'lib/gitlab/diff')
-rw-r--r--lib/gitlab/diff/highlight.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/gitlab/diff/highlight.rb b/lib/gitlab/diff/highlight.rb
index 0d0a3268107..7dd44b6004a 100644
--- a/lib/gitlab/diff/highlight.rb
+++ b/lib/gitlab/diff/highlight.rb
@@ -95,8 +95,7 @@ module Gitlab
end
def lexer
- parent = Rouge::Lexer.guess(filename: @file_name, source: @code).new rescue Rouge::Lexers::PlainText.new
- Rouge::Lexers::GitlabDiff.new(parent_lexer: parent)
+ Rouge::Lexer.guess(filename: @file_name, source: @code).new rescue Rouge::Lexers::PlainText.new
end
def unescape_html(content)