Skip to content

Commit

Permalink
Add back fix for permitted spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
pyrmont committed Jul 21, 2019
1 parent 141643c commit 40d4031
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rouge/lexers/html.rb
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def self.detect?(text)

state :tag do
rule %r/\s+/m, Text
rule %r/[a-zA-Z0-9_:\[\]()*.-]+\s*=/m, Name::Attribute, :attr
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
Expand Down

0 comments on commit 40d4031

Please sign in to comment.