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:
authorhttp://jneen.net/ <jneen@jneen.net>2016-07-14 22:21:22 +0300
committerhttp://jneen.net/ <jneen@jneen.net>2016-07-14 22:21:22 +0300
commitc763c7e402599a2789e260ecf61c11c68381aaa5 (patch)
tree721629fa686a7f831570ddc012c8190d6e2e17e6 /lib/gitlab
parentf7f082f46c919e5c8c730a2c2ab0a7baf086b01b (diff)
use the proper variable names o_O
Diffstat (limited to 'lib/gitlab')
-rw-r--r--lib/gitlab/highlight.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/gitlab/highlight.rb b/lib/gitlab/highlight.rb
index a9e429a29f4..9360afedfcb 100644
--- a/lib/gitlab/highlight.rb
+++ b/lib/gitlab/highlight.rb
@@ -35,8 +35,8 @@ module Gitlab
def lexer
@lexer ||= custom_language || begin
- Rouge::Lexer.guess(filename: blob_name, source: blob_content).new
- rescue Rouge::Lexer::AmbiguousGuess => e
+ Rouge::Lexer.guess(filename: @blob_name, source: @blob_content).new
+ rescue Rouge::Guesser::Ambiguous => e
e.alternatives.sort_by(&:tag).first
end
end