diff options
| author | nsfisis <nsfisis@gmail.com> | 2025-08-24 23:21:47 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2025-08-24 23:55:28 +0900 |
| commit | f30ceaaf80a54069bde3563646b7abb3e4ef03ae (patch) | |
| tree | e2f4f52d1ff9592d094f2b2f13d51f3af5b3b5cd /src | |
| parent | 78f961696c3bd761c9f43e368765055e33834b90 (diff) | |
| download | ducc-f30ceaaf80a54069bde3563646b7abb3e4ef03ae.tar.gz ducc-f30ceaaf80a54069bde3563646b7abb3e4ef03ae.tar.zst ducc-f30ceaaf80a54069bde3563646b7abb3e4ef03ae.zip | |
feat: support (?) static keyword, just ignoring
Diffstat (limited to 'src')
| -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)) { |
