Skip to content
Snippets Groups Projects
Commit 6e5c61f1 authored by Jeanine Adkisson's avatar Jeanine Adkisson
Browse files

Merge pull request #267 from stanhu/pass-options-to-enum-lexer

Pass lexer options to enumeration to support continue use case
parents 988a75aa 03b03c59
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