Treat unclosed comment as error

This commit is contained in:
Greg Shuflin 2021-10-14 03:05:25 -07:00
parent 421a33c42c
commit fcbf2d959b
1 changed files with 5 additions and 1 deletions

View File

@ -156,7 +156,11 @@ pub fn tokenize(input: &str) -> Vec<Token> {
break;
}
}
continue;
if comment_level != 0 {
Error("Unclosed comment".to_string())
} else {
continue;
}
},
_ => Slash
},