langref: update grammar with c pointers

See #1059
This commit is contained in:
Andrew Kelley
2019-02-10 12:02:38 -05:00
parent 73e8e46257
commit 661fc79fba
2 changed files with 7 additions and 4 deletions

View File

@@ -2778,8 +2778,8 @@ static AstNode *ast_parse_array_type_start(ParseContext *pc) {
// PtrTypeStart
// <- ASTERISK
// / ASTERISK2
// / LBRACKET ASTERISK RBRACKET
// / LBRACKET ASTERISK C RBRACKET
// / PTRUNKNOWN
// / PTRC
static AstNode *ast_parse_ptr_type_start(ParseContext *pc) {
Token *asterisk = eat_token_if(pc, TokenIdStar);
if (asterisk != nullptr) {