lib/rouge/lexers/elixir.rb in rouge-4.2.0 vs lib/rouge/lexers/elixir.rb in rouge-4.2.1
- old
+ new
@@ -133,10 +133,10 @@
rule %r/#/, toktype
else
rule %r/[\\#]/, toktype
end
- uniq_chars = "#{open}#{close}".squeeze
+ uniq_chars = [open, close].uniq.join
rule %r/[^##{uniq_chars}\\]+/m, toktype
end
end
end