lib/rouge/lexers/python.rb in rouge-3.25.0 vs lib/rouge/lexers/python.rb in rouge-3.26.0
- old
+ new
@@ -113,10 +113,10 @@
end
# TODO: not in python 3
rule %r/`.*?`/, Str::Backtick
rule %r/([rfbu]{0,2})('''|"""|['"])/i do |m|
- token Str
+ groups Str::Affix, Str
current_string.register type: m[1].downcase, delim: m[2]
push :generic_string
end
rule %r/@#{dotted_identifier}/i, Name::Decorator