lib/rouge/lexers/python.rb in rouge-3.28.0 vs lib/rouge/lexers/python.rb in rouge-3.29.0

- old
+ new

@@ -216,12 +216,14 @@ rule %r/\\./, Str, :pop! end state :generic_interpol do - rule %r/[^{}]+/ do |m| + rule %r/[^{}!:]+/ do |m| recurse m[0] end + rule %r/![asr]/, Str::Interpol + rule %r/:/, Str::Interpol rule %r/{/, Str::Interpol, :generic_interpol rule %r/}/, Str::Interpol, :pop! end class StringRegister < Array