mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 07:38:48 +00:00
Error on unterminated multi-line comment
This commit is contained in:
@@ -968,6 +968,7 @@ gb_internal void tokenizer_get_token(Tokenizer *t, Token *token, int repeat=0) {
|
|||||||
advance_to_next_rune(t);
|
advance_to_next_rune(t);
|
||||||
for (isize comment_scope = 1; comment_scope > 0; /**/) {
|
for (isize comment_scope = 1; comment_scope > 0; /**/) {
|
||||||
if (t->curr_rune == GB_RUNE_EOF) {
|
if (t->curr_rune == GB_RUNE_EOF) {
|
||||||
|
tokenizer_err(t, "Multi-line comment not terminated");
|
||||||
break;
|
break;
|
||||||
} else if (t->curr_rune == '/') {
|
} else if (t->curr_rune == '/') {
|
||||||
advance_to_next_rune(t);
|
advance_to_next_rune(t);
|
||||||
|
|||||||
Reference in New Issue
Block a user