Commit c763c7e4 authored by http://jneen.net/'s avatar http://jneen.net/

use the proper variable names o_O

parent f7f082f4
...@@ -35,8 +35,8 @@ module Gitlab ...@@ -35,8 +35,8 @@ module Gitlab
def lexer def lexer
@lexer ||= custom_language || begin @lexer ||= custom_language || begin
Rouge::Lexer.guess(filename: blob_name, source: blob_content).new Rouge::Lexer.guess(filename: @blob_name, source: @blob_content).new
rescue Rouge::Lexer::AmbiguousGuess => e rescue Rouge::Guesser::Ambiguous => e
e.alternatives.sort_by(&:tag).first e.alternatives.sort_by(&:tag).first
end end
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment