-
Notifications
You must be signed in to change notification settings - Fork 740
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Restore support for opts to Lexer.lex (#1178)
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. 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.
- Loading branch information
Showing
2 changed files
with
23 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters