mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-05 23:28:48 +00:00
Fix allow_field_separator for foreign import
This commit is contained in:
+5
-3
@@ -3693,9 +3693,11 @@ gb_internal bool allow_field_separator(AstFile *f) {
|
|||||||
if (allow_token(f, Token_Comma)) {
|
if (allow_token(f, Token_Comma)) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
if (ALLOW_NEWLINE && token.kind == Token_Semicolon && !token_is_newline(token)) {
|
if (ALLOW_NEWLINE && token.kind == Token_Semicolon) {
|
||||||
String p = token_to_string(token);
|
if (!token_is_newline(token)) {
|
||||||
syntax_error(token_end_of_line(f, f->prev_token), "Expected a comma, got a %.*s", LIT(p));
|
String p = token_to_string(token);
|
||||||
|
syntax_error(token_end_of_line(f, f->prev_token), "Expected a comma, got a %.*s", LIT(p));
|
||||||
|
}
|
||||||
advance_token(f);
|
advance_token(f);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user