lib/rouge/lexers/yaml.rb in rouge-3.26.0 vs lib/rouge/lexers/yaml.rb in rouge-3.26.1

- old
+ new

@@ -173,10 +173,10 @@ rule %r/\*[\p{L}\p{Nl}\p{Nd}_-]+/, Name::Variable end state :block_nodes do # implicit key - rule %r/((?:[\p{L}\p{Nl}\p{Nd}_][\p{L}\p{Nl}\p{Nd}\p{Blank}_-]*)?)(:)(?=\s|$)/ do |m| + rule %r/([^#,:?\[\]{}"'\n]+)(:)(?=\s|$)/ do |m| groups Name::Attribute, Punctuation::Indicator set_indent m[0], :implicit => true end # literal and folded scalars