You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
warn'the :continue option to Formatter#lex is deprecated, use #continue_lex instead.'
returncontinue_lex(string, &b)
end
The code is not actually checking for the :continue option, which can send the application down the wrong code path. As a result, very bizarre things start to happen.
The text was updated successfully, but these errors were encountered:
Rouge will sometimes crash when formatting tokens that were created using a lexer instance that was used with options.
The problem stems from a typo in the Lexer#lex method. Here's the problematic line:
rouge/lib/rouge/lexer.rb
Lines 421 to 424 in 6d62ba1
The code is not actually checking for the
:continue
option, which can send the application down the wrong code path. As a result, very bizarre things start to happen.The text was updated successfully, but these errors were encountered: