diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2018-11-17 01:38:35 -0500 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2018-11-17 01:38:35 -0500 |
| commit | 704374e51294e14285b0b54030c1cb6154868098 (patch) | |
| tree | a0e33d754ab4b5fe84961a48711cdeff23dc858b /src/parser.cpp | |
| parent | 38629628814aae6ba09bc2c25fdbac407a5d9e17 (diff) | |
| download | zig-704374e51294e14285b0b54030c1cb6154868098.tar.gz zig-704374e51294e14285b0b54030c1cb6154868098.zip | |
rename `section` keyword to `linksection`
add zig fmt support for this syntax
closes #1152
Diffstat (limited to 'src/parser.cpp')
| -rw-r--r-- | src/parser.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parser.cpp b/src/parser.cpp index 0864e7ed1b..b5c67875de 100644 --- a/src/parser.cpp +++ b/src/parser.cpp @@ -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; |
