preservim / tagbar

Vim plugin that displays tags in a window, ordered by scope
https://preservim.github.io/tagbar
Other
6.12k stars 486 forks source link

Add Terraform (HCL) (*.tf) support #758

Open antonysouthworth-halter opened 3 years ago

antonysouthworth-halter commented 3 years ago

Best-guess at implementing this; please advise if changes required.

This cannot be merged until after https://github.com/universal-ctags/ctags/pull/2952 is merged, since it required Terraform support in ctags itself.

Related discussion: https://github.com/preservim/tagbar/issues/757

alerque commented 3 years ago

Great, thanks for contributing here and upstream as well. I'll be happy to merge this for first class out of the box support as soon as it's in ctags. I see there are some potential changes to the naming scheme being suggested in that PR so I've changed this to draft mode. Be sure to ping back when the upstream PR is merged and this one is adjusted to match whatever is finalized.

adamency commented 11 months ago

Hi there,

@antonysouthworth-halter I believe this can now be merged if the code is satisfactory to you @alerque, as the code from https://github.com/universal-ctags/ctags/pull/2952 has been merged in https://github.com/universal-ctags/ctags/pull/3684.

So that Tagbar could support HCL by default :tada: