summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorhttp://jneen.net/ <jneen@jneen.net>2016-07-14 12:21:22 -0700
committerhttp://jneen.net/ <jneen@jneen.net>2016-07-14 12:21:22 -0700
commitc763c7e402599a2789e260ecf61c11c68381aaa5 (patch)
tree721629fa686a7f831570ddc012c8190d6e2e17e6 /lib
parentf7f082f46c919e5c8c730a2c2ab0a7baf086b01b (diff)
downloadgitlab-ce-c763c7e402599a2789e260ecf61c11c68381aaa5.tar.gz
use the proper variable names o_O
Diffstat (limited to 'lib')
-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