diff --git a/src/row.rs b/src/row.rs index 0564d13..cea24b3 100644 --- a/src/row.rs +++ b/src/row.rs @@ -415,10 +415,12 @@ impl Row { if let Some(hl_type) = self.highlighting.last() { if *hl_type == highlighting::Type::MultilineComment && self.string.len() > 1 - && self.string[self.string.len() - 2..] == *"*/" + && self.string[self.string.len() - 2..] != *"*/" { return true; } + } else if start_with_comment { + return true; } return false; }