Problem Statement
This is to follow up on hashicorp/terraform-ls#827 which introduces semantic highlighting of type declarations.
Type declarations are highlighted by the server as keyword.
Our grammar currently highlights them as storage.type which seems to result in a different association in the default VSCode themes.
https://github.com/hashicorp/vscode-terraform/blob/c8b0154b8d2cc4cd67b4e68065ad6b85f8e133a8/syntaxes/terraform.tmGrammar.json#L49-L53
Grammar (only) Highlighting

Semantic Highlighting

Expected User Experience
Grammar and semantic highlighting are more aligned, i.e. type declarations are highlighted as keywords in the grammar too.
Proposal
Update terraform_type_keywords matcher?
Problem Statement
This is to follow up on hashicorp/terraform-ls#827 which introduces semantic highlighting of type declarations.
Type declarations are highlighted by the server as
keyword.Our grammar currently highlights them as
storage.typewhich seems to result in a different association in the default VSCode themes.https://github.com/hashicorp/vscode-terraform/blob/c8b0154b8d2cc4cd67b4e68065ad6b85f8e133a8/syntaxes/terraform.tmGrammar.json#L49-L53
Grammar (only) Highlighting
Semantic Highlighting
Expected User Experience
Grammar and semantic highlighting are more aligned, i.e. type declarations are highlighted as keywords in the grammar too.
Proposal
Update
terraform_type_keywordsmatcher?