Skip to content

Commit 7706036

Browse files
committed
Allow single quotes for LABEL keys
1 parent a03c30c commit 7706036

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/rouge/lexers/docker.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ class Docker < RegexLexer
6161
rule %r/\n/, Text, :pop!
6262
rule %r/^\s*#.*\n/, Comment
6363
rule %r/\s*\\./m, Str::Escape
64-
rule %r/(\s*(?:\S+|"[^"]+"))(=)/ do
64+
rule %r/(\s*(?:\S+|"[^"]+"|'[^']+'))(=)/ do
6565
groups Name::Property, Punctuation
6666
push :value
6767
end

0 commit comments

Comments
 (0)