Rust: Skip 'pub' keyword in front of struct fields.
This commit is contained in:
parent
ff796360ce
commit
530d047c9d
@ -738,7 +738,8 @@ static void parseStructOrEnum (lexerState *lexer, vString *scope, int parent_kin
|
|||||||
}
|
}
|
||||||
if (lexer->cur_token == TOKEN_IDENT)
|
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);
|
advanceToken(lexer, TRUE);
|
||||||
if (lexer->cur_token != TOKEN_IDENT)
|
if (lexer->cur_token != TOKEN_IDENT)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user