From f30ceaaf80a54069bde3563646b7abb3e4ef03ae Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sun, 24 Aug 2025 23:21:47 +0900 Subject: feat: support (?) static keyword, just ignoring --- src/parse.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/parse.c') 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)) { -- cgit v1.2.3-70-g09d2