authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2019-03-10 15:55:38-04:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2019-03-10 15:55:54-04:00
log918dbd4551f6c737d1c4b7416ef40b59c902eac8
treeb2bc9b5958e392912a1a44901d44d8c62a31c6a8
parentfa9fcab620ada24d9bb7c51a86a1a8944056da02
signaturelock-open Commit is signed but in an unrecognized format.

std.zig: `this` is no longer a keyword


6 files changed, 0 insertions(+), 30 deletions(-)

doc/docgen.zig-1
......@@ -795,7 +795,6 @@ fn tokenizeAndPrintRaw(docgen_tokenizer: *Tokenizer, out: var, source_token: Tok
795795 std.zig.Token.Id.Keyword_null,
796796 std.zig.Token.Id.Keyword_true,
797797 std.zig.Token.Id.Keyword_false,
798 std.zig.Token.Id.Keyword_this,
799798 => {
800799 try out.write("<span class=\"tok-null\">");
801800 try writeEscaped(out, src[token.start..token.end]);
src-self-hosted/ir.zig-1
......@@ -1151,7 +1151,6 @@ pub const Builder = struct {
11511151 ast.Node.Id.BoolLiteral => return error.Unimplemented,
11521152 ast.Node.Id.NullLiteral => return error.Unimplemented,
11531153 ast.Node.Id.UndefinedLiteral => return error.Unimplemented,
1154 ast.Node.Id.ThisLiteral => return error.Unimplemented,
11551154 ast.Node.Id.Unreachable => return error.Unimplemented,
11561155 ast.Node.Id.Identifier => {
11571156 const identifier = @fieldParentPtr(ast.Node.Identifier, "base", node);
std/zig/ast.zig-18
......@@ -302,7 +302,6 @@ pub const Node = struct {
302302 BoolLiteral,
303303 NullLiteral,
304304 UndefinedLiteral,
305 ThisLiteral,
306305 Unreachable,
307306 Identifier,
308307 GroupedExpression,
......@@ -1997,23 +1996,6 @@ pub const Node = struct {
19971996 }
19981997 };
19991998
2000 pub const ThisLiteral = struct {
2001 base: Node,
2002 token: TokenIndex,
2003
2004 pub fn iterate(self: *ThisLiteral, index: usize) ?*Node {
2005 return null;
2006 }
2007
2008 pub fn firstToken(self: *const ThisLiteral) TokenIndex {
2009 return self.token;
2010 }
2011
2012 pub fn lastToken(self: *const ThisLiteral) TokenIndex {
2013 return self.token;
2014 }
2015 };
2016
20171999 pub const AsmOutput = struct {
20182000 base: Node,
20192001 lbracket: TokenIndex,
std/zig/parse.zig-4
......@@ -2563,10 +2563,6 @@ pub fn parse(allocator: *mem.Allocator, source: []const u8) !ast.Tree {
25632563 _ = try createToCtxLiteral(arena, opt_ctx, ast.Node.NullLiteral, token.index);
25642564 continue;
25652565 },
2566 Token.Id.Keyword_this => {
2567 _ = try createToCtxLiteral(arena, opt_ctx, ast.Node.ThisLiteral, token.index);
2568 continue;
2569 },
25702566 Token.Id.Keyword_var => {
25712567 _ = try createToCtxLiteral(arena, opt_ctx, ast.Node.VarType, token.index);
25722568 continue;
std/zig/render.zig-4
......@@ -880,10 +880,6 @@ fn renderExpression(
880880 const null_literal = @fieldParentPtr(ast.Node.NullLiteral, "base", base);
881881 return renderToken(tree, stream, null_literal.token, indent, start_col, space);
882882 },
883 ast.Node.Id.ThisLiteral => {
884 const this_literal = @fieldParentPtr(ast.Node.ThisLiteral, "base", base);
885 return renderToken(tree, stream, this_literal.token, indent, start_col, space);
886 },
887883 ast.Node.Id.Unreachable => {
888884 const unreachable_node = @fieldParentPtr(ast.Node.Unreachable, "base", base);
889885 return renderToken(tree, stream, unreachable_node.token, indent, start_col, space);
std/zig/tokenizer.zig-2
......@@ -52,7 +52,6 @@ pub const Token = struct {
5252 Keyword{ .bytes = "suspend", .id = Id.Keyword_suspend },
5353 Keyword{ .bytes = "switch", .id = Id.Keyword_switch },
5454 Keyword{ .bytes = "test", .id = Id.Keyword_test },
55 Keyword{ .bytes = "this", .id = Id.Keyword_this },
5655 Keyword{ .bytes = "threadlocal", .id = Id.Keyword_threadlocal },
5756 Keyword{ .bytes = "true", .id = Id.Keyword_true },
5857 Keyword{ .bytes = "try", .id = Id.Keyword_try },
......@@ -183,7 +182,6 @@ pub const Token = struct {
183182 Keyword_suspend,
184183 Keyword_switch,
185184 Keyword_test,
186 Keyword_this,
187185 Keyword_threadlocal,
188186 Keyword_true,
189187 Keyword_try,