lib/rouge/lexer.rb in rouge-1.9.0 vs lib/rouge/lexer.rb in rouge-1.9.1

- old
+ new

@@ -374,10 +374,10 @@ # an enumerator is returned. # # @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) reset! unless opts[:continue]