mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 23:58:50 +00:00
Give error if raw literal hits EOF, and stop removing .Using if it exists in flags and allowed_flags.
This commit is contained in:
@@ -235,8 +235,8 @@ scan_raw_string :: proc(t: ^Tokenizer) -> string {
|
||||
|
||||
for {
|
||||
ch := t.ch;
|
||||
if ch == '\n' || ch < 0 {
|
||||
error(t, offset, "raw string literal was not terminated");
|
||||
if ch == utf8.RUNE_EOF {
|
||||
error(t, offset, "string literal was not terminated");
|
||||
break;
|
||||
}
|
||||
advance_rune(t);
|
||||
|
||||
Reference in New Issue
Block a user