summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorMartin Atkins <mart@degeneration.co.uk>2017-09-11 17:22:10 -0700
committerMartin Atkins <mart@degeneration.co.uk>2017-09-11 17:22:10 -0700
commitb8b5e0be6dbd5129c12602f5e851f088b6d8ade8 (patch)
treebb86382e04512b879a6eabc14eee1d6c8d9d8ae2 /ext
parent46b20d40afa426280172aa48e070b16bbb5727b9 (diff)
hclparse: rename ParseZCL to ParseHCL
Diffstat (limited to 'ext')
-rw-r--r--ext/include/file_resolver.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/include/file_resolver.go b/ext/include/file_resolver.go
index fc929b3..c79a094 100644
--- a/ext/include/file_resolver.go
+++ b/ext/include/file_resolver.go
@@ -4,8 +4,8 @@ import (
"path/filepath"
"strings"
- "github.com/hashicorp/hcl2/hclparse"
"github.com/hashicorp/hcl2/hcl"
+ "github.com/hashicorp/hcl2/hclparse"
)
// FileResolver creates and returns a Resolver that interprets include paths
@@ -21,7 +21,7 @@ import (
// either absolute or relative to the given basePath.
//
// If the path given in configuration ends with ".json" then the referenced
-// file is interpreted as JSON. Otherwise, it is interpreted as zcl native
+// file is interpreted as JSON. Otherwise, it is interpreted as HCL native
// syntax.
func FileResolver(baseDir string, parser *hclparse.Parser) Resolver {
return &fileResolver{
@@ -45,7 +45,7 @@ func (r fileResolver) ResolveBodyPath(path string, refRange hcl.Range) (hcl.Body
if strings.HasSuffix(targetFile, ".json") {
f, diags = r.Parser.ParseJSONFile(targetFile)
} else {
- f, diags = r.Parser.ParseZCLFile(targetFile)
+ f, diags = r.Parser.ParseHCLFile(targetFile)
}
return f.Body, diags