diff --git a/src/hover/sv.rs b/src/hover/sv.rs index 4a3208c..d43937a 100644 --- a/src/hover/sv.rs +++ b/src/hover/sv.rs @@ -98,7 +98,7 @@ fn make_hover_with_comment(doc: &Rope, line: usize, language_id: &str, exclude_c let currentr = current.clone().trim_end().to_owned(); if currentl.starts_with("/*") && currentr.ends_with("*/") { valid = true; - } else if currentr.ends_with("*/") { + } else if currentr.ends_with("*/") && line_idx != line - 1 { multiline = true; valid = true; } else if currentl.starts_with("/*") {