lib/rouge/lexers/docker.rb in rouge-3.28.0 vs lib/rouge/lexers/docker.rb in rouge-3.29.0
- old
+ new
@@ -18,9 +18,13 @@
start { @shell = Shell.new(@options) }
state :root do
rule %r/\s+/, Text
+ rule %r/^(FROM)(\s+)(.*)(\s+)(AS)(\s+)(.*)/io do
+ groups Keyword, Text::Whitespace, Str, Text::Whitespace, Keyword, Text::Whitespace, Str
+ end
+
rule %r/^(ONBUILD)(\s+)(#{KEYWORDS})(.*)/io do
groups Keyword, Text::Whitespace, Keyword, Str
end
rule %r/^(#{KEYWORDS})\b(.*)/io do