Kaydet (Commit) 530d047c authored tarafından SiegeLord's avatar SiegeLord

Rust: Skip 'pub' keyword in front of struct fields.

üst ff796360
......@@ -738,7 +738,8 @@ static void parseStructOrEnum (lexerState *lexer, vString *scope, int parent_kin
}
if (lexer->cur_token == TOKEN_IDENT)
{
if (strcmp(lexer->token_str->buffer, "priv") == 0)
if (strcmp(lexer->token_str->buffer, "priv") == 0
|| strcmp(lexer->token_str->buffer, "pub") == 0)
{
advanceToken(lexer, TRUE);
if (lexer->cur_token != TOKEN_IDENT)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment