Skip to content

Commit

Permalink
Allow single quotes for LABEL keys
Browse files Browse the repository at this point in the history
  • Loading branch information
Bond-009 committed Nov 27, 2024
1 parent a03c30c commit 7706036
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rouge/lexers/docker.rb
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ class Docker < RegexLexer
rule %r/\n/, Text, :pop!
rule %r/^\s*#.*\n/, Comment
rule %r/\s*\\./m, Str::Escape
rule %r/(\s*(?:\S+|"[^"]+"))(=)/ do
rule %r/(\s*(?:\S+|"[^"]+"|'[^']+'))(=)/ do
groups Name::Property, Punctuation
push :value
end
Expand Down

0 comments on commit 7706036

Please sign in to comment.