Treat unclosed comment as error

This commit is contained in:
Greg Shuflin 2021-10-14 03:05:25 -07:00
parent 421a33c42c
commit fcbf2d959b

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
},