1
0
mirror of https://github.com/nushell/nushell.git synced 2025-08-13 18:07:42 +02:00

Lex comment spans correctly ()

This commit is contained in:
JT
2022-01-04 08:37:45 +11:00
committed by GitHub
parent 681e37cec6
commit cb8b7e08a5

@ -280,7 +280,7 @@ pub fn lex(
if !skip_comment {
output.push(Token::new(
TokenContents::Comment,
Span::new(start, curr_offset),
Span::new(span_offset + start, span_offset + curr_offset),
));
}
start = curr_offset;