lib/rouge/lexers/console.rb in rouge-3.7.0 vs lib/rouge/lexers/console.rb in rouge-3.8.0
- old
+ new
@@ -114,10 +114,10 @@
# make sure to take care of initial whitespace
# before we pass to the lang lexer so it can determine where
# the "real" beginning of the line is
$' =~ /\A\s*/
- yield Text, $& unless $&.empty?
+ yield Text::Whitespace, $& unless $&.empty?
lang_lexer.continue_lex($', &output)
elsif comment_regex =~ input[0].strip
puts "console: matched comment #{input[0].inspect}" if @debug
output_lexer.reset!