Treat unclosed comment as error
This commit is contained in:
parent
421a33c42c
commit
fcbf2d959b
@ -156,7 +156,11 @@ pub fn tokenize(input: &str) -> Vec<Token> {
|
||||
break;
|
||||
}
|
||||
}
|
||||
if comment_level != 0 {
|
||||
Error("Unclosed comment".to_string())
|
||||
} else {
|
||||
continue;
|
||||
}
|
||||
},
|
||||
_ => Slash
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user