ice1000 / intellij-zig

The IntelliJ IDEA plugin for the Zig programming language ┗:smiley:┛ ┏:smiley:┓ ┗:smiley:┛ ┏:smiley:┓
GNU General Public License v3.0
113 stars 27 forks source link

Fix struct and tuple grammar. #46

Closed xeus2001 closed 1 year ago

xeus2001 commented 1 year ago

Signed-off-by: Alexander Lowey - Weber alexander.weber@here.com

xeus2001 commented 1 year ago

Fixes the following example:

const std = @import("std");

const Arg = struct {
  num : i32
};

pub fn main() !void {
  const stdout = std.io.getStdOut().writer();
  try stdout.print("Hello, {d}!\n", .{5});
}