From d00cc49ff8ca66947fdfa409c2613216ae5e516a Mon Sep 17 00:00:00 2001 From: Vahe Sahakyan Date: Tue, 29 Nov 2016 11:31:31 +0100 Subject: [PATCH] Add more keywords --- main.go | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/main.go b/main.go index a84762c..f93a68e 100644 --- a/main.go +++ b/main.go @@ -97,6 +97,23 @@ func main() { t.Providers["aws"] = true + var addKeywords = []string{ + "private_key", + "script_path", + "bastion_user", + "bastion_password", + "bastion_private_key", + "bastion_host", + "bastion_port", + "connection", + "provisioner", + "inline", + } + + for _, k := range addKeywords { + t.Keywords[k] = true + } + tpl = template.New("template") tpl, err = tpl.ParseFiles("template")