Update mod.rs

This commit is contained in:
0rphon 2022-02-08 17:40:03 -07:00
parent b0804d0e49
commit 37b96acc24

View File

@ -84,7 +84,7 @@ pub(crate) fn tokenize(path: &str, input: StrTendril) -> Result<Vec<SpannedToken
break;
} else if token_len == 0 {
return Err(ParserError::unexpected_token(
&input[index..index + 1],
&input[index..].chars().next().unwrap(),
&Span::new(
line_no,
line_no,