diff options
Diffstat (limited to 'src/parse.c')
| -rw-r--r-- | src/parse.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/parse.c b/src/parse.c index de7ff63..6bb87ec 100644 --- a/src/parse.c +++ b/src/parse.c @@ -506,7 +506,7 @@ BOOL is_type_token(Parser* p, Token* token) { token->kind == TokenKind_keyword_long || token->kind == TokenKind_keyword_char || token->kind == TokenKind_keyword_void || token->kind == TokenKind_keyword_enum || token->kind == TokenKind_keyword_struct || token->kind == TokenKind_keyword_union || - token->kind == TokenKind_keyword_const) { + token->kind == TokenKind_keyword_const || token->kind == TokenKind_keyword_static) { return TRUE; } if (token->kind != TokenKind_ident) { @@ -517,7 +517,7 @@ BOOL is_type_token(Parser* p, Token* token) { Type* parse_type(Parser* p) { Token* t = next_token(p); - if (t->kind == TokenKind_keyword_const) { + if (t->kind == TokenKind_keyword_const || t->kind == TokenKind_keyword_static) { t = next_token(p); } if (!is_type_token(p, t)) { |
