Fix the span for words
This commit is contained in:
parent
68b73cf8b5
commit
9a615cf088
|
@ -2,4 +2,6 @@
|
|||
*.swp
|
||||
*.bin
|
||||
*.rom
|
||||
*.hex
|
||||
*.chr
|
||||
.DS_Store
|
||||
|
|
|
@ -205,9 +205,9 @@ fn tokenize(word: &[Spanned<char>]) -> Result<(Spanned<Token>, Vec<Warning>), Er
|
|||
}
|
||||
}
|
||||
}
|
||||
Spanned { node: '"', span } => {
|
||||
Spanned { node: '"', .. } => {
|
||||
return Ok((
|
||||
Token::RawWord(to_string(&word[1..])).spanning(span),
|
||||
Token::RawWord(to_string(&word[1..])).spanning(to_span(word).unwrap()),
|
||||
Vec::new(),
|
||||
));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue