Skip to content

Commit

Permalink
Merge pull request #367 from julp/terminal256_conflict_on_token_names
Browse files Browse the repository at this point in the history
Conflict on token names when caching escape sequences (terminal256 formatter)
  • Loading branch information
jneen committed Dec 28, 2015
2 parents 76647eb + f1ae37e commit d989f18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rouge/formatters/terminal256.rb
Expand Up @@ -155,7 +155,7 @@ def self.closest_color(r, g, b)
# private
def escape_sequence(token)
@escape_sequences ||= {}
@escape_sequences[token.name] ||=
@escape_sequences[token.qualname] ||=
EscapeSequence.new(get_style(token))
end

Expand Down

0 comments on commit d989f18

Please sign in to comment.