fix more no_names and build config
This commit is contained in:
parent
2b153e046c
commit
0720452217
@ -19,7 +19,7 @@ pub fn config(step: *std.build.Step) anyerror!void {
|
||||
var dir = try std.fs.cwd().openDir(builder.exe_dir, .{});
|
||||
defer dir.close();
|
||||
|
||||
var file = try dir.openFile("zls.json", .{ .write = true });
|
||||
var file = try dir.createFile("zls.json", .{});
|
||||
defer file.close();
|
||||
|
||||
const out = file.outStream();
|
||||
|
@ -1047,7 +1047,8 @@ fn addOutlineNodes(allocator: *std.mem.Allocator, children: *std.ArrayList(types
|
||||
.PrefixOp, .SuffixOp, .ControlFlowExpression, .ArrayInitializerDot, .SwitchElse,
|
||||
.SwitchCase, .For, .EnumLiteral, .PointerIndexPayload , .StructInitializerDot,
|
||||
.PointerPayload, .While, .Switch, .Else, .BoolLiteral, .NullLiteral, .Defer,
|
||||
.StructInitializer, .FieldInitializer, .If, .FnProto => return,
|
||||
.StructInitializer, .FieldInitializer, .If, .FnProto, .MultilineStringLiteral,
|
||||
.UndefinedLiteral, .VarType => return,
|
||||
|
||||
.ContainerDecl => {
|
||||
const decl = child.cast(ast.Node.ContainerDecl).?;
|
||||
|
Loading…
Reference in New Issue
Block a user