syntax icon indicating copy to clipboard operation
syntax copied to clipboard

Consider highlighting grammar for function signatures

Open radeksimko opened this issue 2 years ago • 0 comments

Context

As part of https://github.com/hashicorp/terraform-ls/issues/37 we discovered that there's need for rendering function signatures in a markdown hover popup. Because signatures aren't technically valid HCL, the existing grammar(s) do not highlight it particularly well. Specifically, the grammar cannot distinguish between type declaration and parameter name.

Screenshot 2023-03-23 at 09 17 01 Screenshot 2023-03-23 at 09 18 16

Proposal

  • [ ] Explore the option of a separate small grammar to highlight just function signatures
  • [ ] Discuss and agree on a stable/predictable way of rendering the signatures - e.g. how to present types (set(string) vs set of string; any single type vs dynamic etc.)

radeksimko avatar Mar 23 '23 09:03 radeksimko