diff --git a/caddyfile/dispenser.go b/caddyfile/dispenser.go index edb7bfaf..91af9b12 100644 --- a/caddyfile/dispenser.go +++ b/caddyfile/dispenser.go @@ -120,6 +120,12 @@ func (d *Dispenser) NextBlock() bool { return true } +// IncrNest adds a level of nesting to the dispenser. +func (d *Dispenser) IncrNest() { + d.nesting++ + return +} + // Val gets the text of the current token. If there is no token // loaded, it returns empty string. func (d *Dispenser) Val() string {