lib/rouge/lexers/slim.rb in rouge-3.3.0 vs lib/rouge/lexers/slim.rb in rouge-3.4.0

- old
+ new

@@ -170,12 +170,12 @@ state :ruby_line do # Need at top mixin :indented_block - rule(/,\s*\n/) { delegate ruby } + rule(/[,\\]\s*\n/) { delegate ruby } rule /[ ]\|[ \t]*\n/, Str::Escape - rule(/.*?(?=(,$| \|)?[ \t]*$)/) { delegate ruby } + rule(/.*?(?=([,\\]$| \|)?[ \t]*$)/) { delegate ruby } end state :filter_block do rule /([^#\n]|#[^{\n]|(\\\\)*\\#\{)+/ do if @filter_lexer