lib/rouge/regex_lexer.rb in rouge-0.2.7 vs lib/rouge/regex_lexer.rb in rouge-0.2.8

- old
+ new

@@ -326,10 +326,13 @@ # that number of times. def pop!(times=1) raise 'empty stack!' if stack.empty? debug { " popping stack: #{times}" } - times.times { stack.pop } + + stack.pop(times) + + nil end # reset the stack back to `[:root]`. def reset_stack debug { ' resetting stack' }