Skip to content
Snippets Groups Projects
Commit 03b03c59 authored by Stan Hu's avatar Stan Hu
Browse files

Pass lexer options to enumeration to support continue use case

parent bbc40dd7
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -376,7 +376,7 @@ module Rouge
# @option opts :continue
# Continue the lex from the previous state (i.e. don't call #reset!)
def lex(string, opts={}, &b)
return enum_for(:lex, string) unless block_given?
return enum_for(:lex, string, opts) unless block_given?
 
Lexer.assert_utf8!(string)
 
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment