diff options
| author | Feoramund <161657516+Feoramund@users.noreply.github.com> | 2025-05-29 18:28:54 -0400 |
|---|---|---|
| committer | Feoramund <161657516+Feoramund@users.noreply.github.com> | 2025-05-29 18:28:54 -0400 |
| commit | 3c1201fb2c179bdca5dd0ca616c276597223e918 (patch) | |
| tree | 8a3227ba3cbb81399c49ca3839dc7b23a7f92b55 /src | |
| parent | 3142aaf497d7a784eb85b9596e05fd329554c5a8 (diff) | |
Error on unterminated multi-line comment
Diffstat (limited to 'src')
| -rw-r--r-- | src/tokenizer.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/tokenizer.cpp b/src/tokenizer.cpp index 53f6135d0..ffa53abb5 100644 --- a/src/tokenizer.cpp +++ b/src/tokenizer.cpp @@ -968,6 +968,7 @@ gb_internal void tokenizer_get_token(Tokenizer *t, Token *token, int repeat=0) { advance_to_next_rune(t); for (isize comment_scope = 1; comment_scope > 0; /**/) { if (t->curr_rune == GB_RUNE_EOF) { + tokenizer_err(t, "Multi-line comment not terminated"); break; } else if (t->curr_rune == '/') { advance_to_next_rune(t); |