From eb48885d4d24305e183223dbe3e9d947125d3274 Mon Sep 17 00:00:00 2001 From: Radim Marek Date: Fri, 11 Dec 2015 22:02:31 +0100 Subject: [PATCH] Updated comments --- caddy/parse/parsing.go | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/caddy/parse/parsing.go b/caddy/parse/parsing.go index e011fd8cc..db4b7e425 100644 --- a/caddy/parse/parsing.go +++ b/caddy/parse/parsing.go @@ -176,10 +176,11 @@ func (p *parser) directives() error { } // doImport swaps out the import directive and its argument -// (a total of 2 tokens) with the tokens in the file specified. -// When the function returns, the cursor is on the token before -// where the import directive was. In other words, call Next() -// to access the first token that was imported. +// (a total of 2 tokens) with the tokens in the specified file +// or globbing pattern. When the function returns, the cursor +// is on the token before where the import directive was. In +// other words, call Next() to access the first token that was +// imported. func (p *parser) doImport() error { if !p.NextArg() { return p.ArgErr() @@ -218,6 +219,8 @@ func (p *parser) doImport() error { return nil } +// doSingleImport lexes the individual files matching the +// globbing pattern from of the import directive. func (p *parser) doSingleImport(importFile string) error { file, err := os.Open(importFile) if err != nil {