rename section keyword to linksection

add zig fmt support for this syntax

closes #1152
This commit is contained in:
Andrew Kelley
2018-11-17 01:38:35 -05:00
parent 3862962881
commit 704374e512
11 changed files with 310 additions and 236 deletions

View File

@@ -2082,7 +2082,7 @@ static AstNode *ast_parse_while_continue_expr(ParseContext *pc) {
// Section <- KEYWORD_section LPAREN Expr RPAREN
static AstNode *ast_parse_section(ParseContext *pc) {
Token *first = eat_token_if(pc, TokenIdKeywordSection);
Token *first = eat_token_if(pc, TokenIdKeywordLinkSection);
if (first == nullptr)
return nullptr;