lib/rouge/lexers/docker.rb in rouge-3.5.1 vs lib/rouge/lexers/docker.rb in rouge-3.6.0
- old
+ new
@@ -18,14 +18,14 @@
start { @shell = Shell.new(@options) }
state :root do
rule %r/\s+/, Text
- rule %r/^(ONBUILD)(\s+)(#{KEYWORDS})(.*)/io do |m|
+ rule %r/^(ONBUILD)(\s+)(#{KEYWORDS})(.*)/io do
groups Keyword, Text::Whitespace, Keyword, Str
end
- rule %r/^(#{KEYWORDS})\b(.*)/io do |m|
+ rule %r/^(#{KEYWORDS})\b(.*)/io do
groups Keyword, Str
end
rule %r/#.*?$/, Comment