Repository navigation
Expand file tree
/
Copy pathzig.json
More file actions
6 lines (6 loc) · 1.42 KB
/
Copy pathzig.json
File metadata and controls
6 lines (6 loc) · 1.42 KB
1
2
3
4
5
6
{
"section": "zig",
"original": "const std = @import(\"std\");\r\n\r\npub fn main() !void {\r\n const stdout = std.io.getStdOut().writer();\r\n try stdout.print(\"hi\\n\", .{});\r\n}\r\n",
"edit": "<<<<<<< SKIP\r\n<<<<<<< skip\r\nconst std = @import(\"std\");\r\n\r\npub fn main() !void {\r\n const stdout = std.io.getStdOut().writer();\r\n const hint = \"marker <<<<<<< SKIP inside string is inert\";\r\n const curly = \"curly “hi” with <<<<<<< skip inert\";\r\n\tconst tabbed = \"tab indent kept as-is\";\r\n // zig comment: '<<<<<<< SKIP' inert as content\r\n const multi =\r\n \\\\multiline <<<<<<< SKIP inside is inert\r\n \\\\also <<<<<<< SKIP and <<<<<<< SKIP inert\r\n ;\r\n try stdout.print(\"hello world | {s} | {d} | {s} | {s}\\n\", .{ hint, multi.len, curly, tabbed });\r\n}\r\n<<<<<<< Skip\r\n",
"expected": "const std = @import(\"std\");\n\npub fn main() !void {\n const stdout = std.io.getStdOut().writer();\n const hint = \"marker <<<<<<< SKIP inside string is inert\";\n const curly = \"curly “hi” with <<<<<<< skip inert\";\n\tconst tabbed = \"tab indent kept as-is\";\n // zig comment: '<<<<<<< SKIP' inert as content\n const multi =\n \\\\multiline <<<<<<< SKIP inside is inert\n \\\\also <<<<<<< SKIP and <<<<<<< SKIP inert\n ;\n try stdout.print(\"hello world | {s} | {d} | {s} | {s}\\n\", .{ hint, multi.len, curly, tabbed });\n}\n"
}