diff --git a/resources/tutorial.yml b/resources/tutorial.yml index f7af11d..e76ed3a 100644 --- a/resources/tutorial.yml +++ b/resources/tutorial.yml @@ -16,15 +16,12 @@ education: | 3 A-Levels BSc in the Internet of Things tutorial: - - yml: - name: "YAML Ain't Markup Language" - type: awesome - born: 2001 - - json: - name: JavaScript Object Notation - type: great - born: 2001 - - xml: - name: Extensible Markup Language - type: good - born: 1996 + - name: "YAML Ain't Markup Language" + type: awesome + born: 2001 + - name: JavaScript Object Notation + type: great + born: 2001 + - name: Extensible Markup Language + type: good + born: 1996 diff --git a/src/main.zig b/src/main.zig index 414e372..9e51776 100644 --- a/src/main.zig +++ b/src/main.zig @@ -38,7 +38,7 @@ const Program = struct { vs: Details, }; -const Shader = struct { slang: []const u8, programs: struct {} }; +const Shader = struct { slang: []const u8, programs: []Program }; const Experiment = struct { shaders: []Shader, diff --git a/src/root.zig b/src/root.zig index 6667915..13173fb 100644 --- a/src/root.zig +++ b/src/root.zig @@ -279,9 +279,9 @@ pub fn Ymlz(comptime Destination: type) type { while (true) { const raw_value_line = try self.readLine() orelse break; + self.suspensed = raw_value_line; if (self.isNewExpression(raw_value_line, depth)) { - self.suspensed = raw_value_line; break; }