lib/rouge/regex_lexer.rb in rouge-1.3.2 vs lib/rouge/regex_lexer.rb in rouge-1.3.3

- old
+ new

@@ -97,9 +97,14 @@ puts " yielding #{tok.qualname}, #{stream[0].inspect}" if @debug @output_stream.call(tok, stream[0]) puts " popping stack: #{1}" if @debug @stack.pop or raise 'empty stack!' end + when :push + proc do |stream| + puts " pushing #{@stack.last.name}" if @debug + @stack.push(@stack.last) + end when Symbol proc do |stream| puts " yielding #{tok.qualname}, #{stream[0].inspect}" if @debug @output_stream.call(tok, stream[0]) state = @states[next_state] || self.class.get_state(next_state)