ctags-lang-terraform - Man Page
Random notes about tagging Terraform files with Universal Ctags
Synopsis
ctags ... --languages=+Terraform ... ctags ... --language-force=Terraform ... ctags ... --map-Terraform=+.tf ... ctags ... --extras=+{reference} --languages=+TerraformVariables ... ctags ... --extras=+{reference} --language-force=TerraformVariables ... ctags ... --extras=+{reference} --map-Terraform=+.tfvars ...
Description
This man page gathers random notes about tagging Terraform files.
Tips
Extracting variables assigned in Variable definitions
Specify --extras=+{reference} and --languages=+TerraformVariables to extract variables assigned in variables definitions (*.tfvars). The TerraformVariables parser extracts variables in *.tfvars files with variable kind with assigned role of Terraform language.
Known Bugs
- The parser doesn't ignore strings inside a block comment (/* ... */).
- The parser doesn't extract variables defined with locals keyword.
See Also
ctags(1), Configuration Syntax (https://developer.hashicorp.com/terraform/language/syntax/configuration), Variable Definitions (.tfvars) Files (https://developer.hashicorp.com/terraform/language/values/variables#variable-definitions-tfvars-files)
Info
6.1.0 Universal Ctags