lib/rouge/lexers/html.rb in rouge-3.6.0 vs lib/rouge/lexers/html.rb in rouge-3.7.0

- old
+ new

@@ -81,11 +81,11 @@ rule %r/-/, Comment end state :tag do rule %r/\s+/m, Text - rule %r/[a-zA-Z0-9_:-]+\s*=\s*/m, Name::Attribute, :attr - rule %r/[a-zA-Z0-9_:-]+/, Name::Attribute + rule %r/[a-zA-Z0-9_:\[\]()*.-]+\s*=\s*/m, Name::Attribute, :attr + rule %r/[a-zA-Z0-9_:#*-]+/, Name::Attribute rule %r(/?\s*>)m, Name::Tag, :pop! end state :attr do # TODO: are backslash escapes valid here?