diff --git a/lib/rouge/lexers/python.rb b/lib/rouge/lexers/python.rb index 01b826b624..6ab0c31365 100644 --- a/lib/rouge/lexers/python.rb +++ b/lib/rouge/lexers/python.rb @@ -210,7 +210,7 @@ def current_string | [0-7]{1,3} ) )x do - token (current_string.type?("r") ? Str : Str::Escape) + current_string.type?("r") ? token(Str) : token(Str::Escape) pop! end