fix more no_names and build config

This commit is contained in:
SuperAuguste 2020-05-27 21:14:27 -04:00
parent 2b153e046c
commit 0720452217
2 changed files with 3 additions and 2 deletions

View File

@ -19,7 +19,7 @@ pub fn config(step: *std.build.Step) anyerror!void {
var dir = try std.fs.cwd().openDir(builder.exe_dir, .{}); var dir = try std.fs.cwd().openDir(builder.exe_dir, .{});
defer dir.close(); defer dir.close();
var file = try dir.openFile("zls.json", .{ .write = true }); var file = try dir.createFile("zls.json", .{});
defer file.close(); defer file.close();
const out = file.outStream(); const out = file.outStream();

View File

@ -1047,7 +1047,8 @@ fn addOutlineNodes(allocator: *std.mem.Allocator, children: *std.ArrayList(types
.PrefixOp, .SuffixOp, .ControlFlowExpression, .ArrayInitializerDot, .SwitchElse, .PrefixOp, .SuffixOp, .ControlFlowExpression, .ArrayInitializerDot, .SwitchElse,
.SwitchCase, .For, .EnumLiteral, .PointerIndexPayload , .StructInitializerDot, .SwitchCase, .For, .EnumLiteral, .PointerIndexPayload , .StructInitializerDot,
.PointerPayload, .While, .Switch, .Else, .BoolLiteral, .NullLiteral, .Defer, .PointerPayload, .While, .Switch, .Else, .BoolLiteral, .NullLiteral, .Defer,
.StructInitializer, .FieldInitializer, .If, .FnProto => return, .StructInitializer, .FieldInitializer, .If, .FnProto, .MultilineStringLiteral,
.UndefinedLiteral, .VarType => return,
.ContainerDecl => { .ContainerDecl => {
const decl = child.cast(ast.Node.ContainerDecl).?; const decl = child.cast(ast.Node.ContainerDecl).?;