lib/rouge/lexers/nginx.rb in rouge-3.13.0 vs lib/rouge/lexers/nginx.rb in rouge-3.14.0
- old
+ new
@@ -39,10 +39,10 @@
end
state :base do
rule %r/\s+/, Text
- rule %r/#.*?\n/, Comment::Single
+ rule %r/#.*/, Comment::Single
rule %r/(?:on|off)\b/, Name::Constant
rule %r/[$][\w-]+/, Name::Variable
# host/port
rule %r/([a-z0-9.-]+)(:)([0-9]+)/i do