mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 15:48:51 +00:00
Remove const as a (reserved) keyword
This commit is contained in:
+2
-3
@@ -3259,11 +3259,10 @@ FieldPrefixKind is_token_field_prefix(AstFile *f) {
|
|||||||
return FieldPrefix_no_alias;
|
return FieldPrefix_no_alias;
|
||||||
} else if (f->curr_token.string == "c_vararg") {
|
} else if (f->curr_token.string == "c_vararg") {
|
||||||
return FieldPrefix_c_var_arg;
|
return FieldPrefix_c_var_arg;
|
||||||
|
} else if (f->curr_token.string == "const") {
|
||||||
|
return FieldPrefix_const;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case Token_const:
|
|
||||||
return FieldPrefix_const;
|
|
||||||
}
|
}
|
||||||
return FieldPrefix_Unknown;
|
return FieldPrefix_Unknown;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -119,7 +119,6 @@ TOKEN_KIND(Token__KeywordBegin, ""), \
|
|||||||
TOKEN_KIND(Token_context, "context"), \
|
TOKEN_KIND(Token_context, "context"), \
|
||||||
TOKEN_KIND(Token_asm, "asm"), \
|
TOKEN_KIND(Token_asm, "asm"), \
|
||||||
TOKEN_KIND(Token_macro, "macro"), \
|
TOKEN_KIND(Token_macro, "macro"), \
|
||||||
TOKEN_KIND(Token_const, "const"), \
|
|
||||||
TOKEN_KIND(Token__KeywordEnd, ""), \
|
TOKEN_KIND(Token__KeywordEnd, ""), \
|
||||||
TOKEN_KIND(Token_Count, "")
|
TOKEN_KIND(Token_Count, "")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user