From 77060363904aa12014bd92589a4f04d1ac18d74f Mon Sep 17 00:00:00 2001 From: Bond_009 Date: Wed, 27 Nov 2024 13:42:17 +0100 Subject: [PATCH] Allow single quotes for LABEL keys --- lib/rouge/lexers/docker.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rouge/lexers/docker.rb b/lib/rouge/lexers/docker.rb index 4828fc9a27..1aff25700e 100644 --- a/lib/rouge/lexers/docker.rb +++ b/lib/rouge/lexers/docker.rb @@ -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