From 788c2b4d2d5793c90915834260b25a152fde5e8e Mon Sep 17 00:00:00 2001 From: Florian Schroedl Date: Sat, 18 Jun 2022 12:20:21 +0200 Subject: [PATCH] Commentary --- src/parser/parser_types.nim | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/parser/parser_types.nim b/src/parser/parser_types.nim index 3584eb4..540faeb 100644 --- a/src/parser/parser_types.nim +++ b/src/parser/parser_types.nim @@ -407,7 +407,9 @@ func highlightStreamPosition2(stream: string, position: int): string = let beforeNewline = case (startIndex, ch): + # Always print newline for newline at the stream begin of (-1, '\n'): "\n" + # Don't insert a newline when the character is a newline between newlines of (_, '\n'): "" else: "\n"