From f4d9ca3a76ef4a09b73c07805ea95d713bd32ae0 Mon Sep 17 00:00:00 2001 From: Amirali Esmaeili Date: Mon, 23 Nov 2020 04:44:33 +0330 Subject: [PATCH] Remove semicolon in module top level preview --- src/rescript-editor-support/Hover.re | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/rescript-editor-support/Hover.re b/src/rescript-editor-support/Hover.re index 6cd66971..4c33bfd3 100644 --- a/src/rescript-editor-support/Hover.re +++ b/src/rescript-editor-support/Hover.re @@ -25,13 +25,9 @@ let showModuleTopLevel = /*** TODO pretty print module contents */ | SharedTypes.MType({decl}) => " " ++ (decl |> Shared.declToString(item.name.txt)) - | Module(_) => " module " ++ item.name.txt ++ ";" + | Module(_) => " module " ++ item.name.txt | MValue(typ) => - " let " - ++ item.name.txt - ++ ": " - ++ (typ |> Shared.typeToString) /* TODO indent */ - ++ ";" + " let " ++ item.name.txt ++ ": " ++ (typ |> Shared.typeToString) /* TODO indent */ } ) |> String.concat("\n");