Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restore support for opts to Lexer.lex #1178

Merged
merged 4 commits into from
Jun 12, 2019

Conversation

pyrmont
Copy link
Contributor

@pyrmont pyrmont commented Jun 12, 2019

Version 3.4.0 of Rouge moved from passing opts[:continue] to the class method .lex to calling the new class method .continue_lex. As implemented, the change was breaking and could cause Rouge to crash (see #1175). This was not intentional and this commit reverts the change. Internally, Rouge still uses .continue_lex but .lex will function as it did in version 3.3.0. A warning is displayed for uses with $VERBOSE set to true.

This fixes #1175.

@pyrmont pyrmont merged commit 6835352 into rouge-ruby:master Jun 12, 2019
@pyrmont pyrmont deleted the bugfix.lex-options branch January 8, 2020 20:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Rouge may crash when formatting tokens if options are used with lexer instance
2 participants