diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2019-05-29 17:39:26 -0400 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2019-05-29 19:09:58 -0400 |
| commit | b7a82288adae12ed52abafbc4e5a9ab391a1f09b (patch) | |
| tree | b630fad1656d800ce89b52675df61bbf37f50f1e /src/parser.cpp | |
| parent | 9a7cf73b3b4fd27f5f251143dd0b50ea90ed338f (diff) | |
| download | zig-b7a82288adae12ed52abafbc4e5a9ab391a1f09b.tar.gz zig-b7a82288adae12ed52abafbc4e5a9ab391a1f09b.zip | |
change `use` to `usingnamespace`
See #2014
`use` syntax is still accepted for now. `zig fmt` automatically
updates code. After a release cycle the old syntax will be removed.
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 583accfd72..3d7bbf7801 100644 --- a/src/parser.cpp +++ b/src/parser.cpp @@ -668,7 +668,7 @@ static AstNode *ast_parse_top_level_decl(ParseContext *pc, VisibMod visib_mod) { return res; } - Token *use = eat_token_if(pc, TokenIdKeywordUse); + Token *use = eat_token_if(pc, TokenIdKeywordUsingNamespace); if (use != nullptr) { AstNode *expr = ast_expect(pc, ast_parse_expr); expect_token(pc, TokenIdSemicolon); |
