Merge pull request #885 from DanielGavin/parser

Parser fixes
This commit is contained in:
gingerBill
2021-03-30 11:47:45 +01:00
committed by GitHub
2 changed files with 1 additions and 5 deletions

View File

@@ -1564,10 +1564,6 @@ check_field_flag_prefixes :: proc(p: ^Parser, name_count: int, allowed_flags, se
}
}
if .Using in allowed_flags && .Using in flags {
flags &~= {.Using};
}
return flags;
}

View File

@@ -235,7 +235,7 @@ scan_raw_string :: proc(t: ^Tokenizer) -> string {
for {
ch := t.ch;
if ch == '\n' || ch < 0 {
if ch == utf8.RUNE_EOF {
error(t, offset, "raw string literal was not terminated");
break;
}