mirror of
https://github.com/nushell/nushell.git
synced 2024-11-08 01:24:38 +01:00
Lex comment spans correctly (#657)
This commit is contained in:
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;
|
||||
|
Loading…
Reference in New Issue
Block a user