From ff8c430ff0760b70b62c1e3884780002ca73fc2e Mon Sep 17 00:00:00 2001 From: Mateusz Gajewski Date: Mon, 20 Feb 2017 13:43:42 +0100 Subject: [PATCH] Revert removed method --- caddyfile/dispenser.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/caddyfile/dispenser.go b/caddyfile/dispenser.go index edb7bfafa..91af9b126 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 {