We want to save comments in AST to show documentation on hover.
Resolves none .
Part of #2094
README.md
file for the plugin and did so if necessary:
To do this we're inserting [@comment "..."]
attributes during a lexer self-pass.
Adopt Nanopasses.Trivial.To_core
. so it allows such attributes everywhere and saves them to Ast where needed.
Adopt scopes definition pass so it remembers attributes.
Obtain attributes of a hovered object, if needed add a markdown for this comment to the returned list of hovers.
Now we show documentation comments (like (** *)
in CameLIGO and /** */
in JsLIGO) in LSP hovers
dune @fmt
to check).## Changelog
section with #### (if appropriate).