VladRassokhin / intellij-hcl

HCL language support for IntelliJ platform based IDEs
Apache License 2.0
244 stars 47 forks source link

Wrong error message when declaring a variable named "depends_on" #302

Open Vloeck opened 4 years ago

Vloeck commented 4 years ago

Prerequisites

Installation details

Expected Behavior

IntelliJ should give a correct error_message like "depends_on is a reserved keyword" like when running terraform grafik

Actual Behavior

What actually happened? grafik IntelliJ gives the following error message:

A name must start with a letter or underscore and may contain only letters, digits, underscores, and dashes.

which is completely wrong since those rules are followed

Steps to Reproduce

define variable block like

variable "depends_on" {
  type = string
}