Skip to content

Commit

Permalink
Fix formatting for macro on hover
Browse files Browse the repository at this point in the history
Summary: Otherwise it does not always syntax highlight

Reviewed By: perehonchuk

Differential Revision: D49733586

fbshipit-source-id: a45d2b184137b6c0610e5adaf5f3a9fae053de8a
  • Loading branch information
alanz authored and facebook-github-bot committed Sep 29, 2023
1 parent d05fae0 commit 6ee4121
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/elp/src/handlers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,7 @@ pub(crate) fn handle_hover(snap: Snapshot, params: HoverParams) -> Result<Option
if let Some(macro_expansion) = snap.analysis.expand_macro(position)? {
let hover_info = (
Doc::new(format!(
"{}\n\n```erlang{}```\n",
"{}\n\n```erlang\n{}```\n",
macro_expansion.name, macro_expansion.expansion
)),
None,
Expand Down

0 comments on commit 6ee4121

Please sign in to comment.