| author | |
| committer | |
| log | dacc5e624eb28570fe517b1f00ddc6287e2c5249 |
| tree | f2f48998b83dbf55bfc98749827521f7ace27964 |
| parent | 1534cd2f88d94f320a5735b55c0ce3aebb905b6c |
2 files changed, 6 insertions(+), 4 deletions(-)
lib/std/zig.zig+4-2| ... | ... | @@ -5,11 +5,13 @@ |
| 5 | 5 | // and substantial portions of the software. |
| 6 | 6 | const std = @import("std.zig"); |
| 7 | 7 | const tokenizer = @import("zig/tokenizer.zig"); |
| 8 | const fmt = @import("zig/fmt.zig"); | |
| 8 | 9 | |
| 9 | 10 | pub const Token = tokenizer.Token; |
| 10 | 11 | pub const Tokenizer = tokenizer.Tokenizer; |
| 11 | pub const fmtId = @import("zig/fmt.zig").fmtId; | |
| 12 | pub const fmtEscapes = @import("zig/fmt.zig").fmtEscapes; | |
| 12 | pub const fmtId = fmt.fmtId; | |
| 13 | pub const fmtEscapes = fmt.fmtEscapes; | |
| 14 | pub const isValidId = fmt.isValidId; | |
| 13 | 15 | pub const parse = @import("zig/parse.zig").parse; |
| 14 | 16 | pub const string_literal = @import("zig/string_literal.zig"); |
| 15 | 17 | pub const ast = @import("zig/ast.zig"); |
lib/std/zig/fmt.zig+2-2| ... | ... | @@ -2,7 +2,7 @@ const std = @import("std"); |
| 2 | 2 | const mem = std.mem; |
| 3 | 3 | |
| 4 | 4 | /// Print the string as a Zig identifier escaping it with @"" syntax if needed. |
| 5 | pub fn formatId( | |
| 5 | fn formatId( | |
| 6 | 6 | bytes: []const u8, |
| 7 | 7 | comptime fmt: []const u8, |
| 8 | 8 | options: std.fmt.FormatOptions, |
| ... | ... | @@ -36,7 +36,7 @@ pub fn isValidId(bytes: []const u8) bool { |
| 36 | 36 | /// Print the string as escaped contents of a double quoted or single-quoted string. |
| 37 | 37 | /// Format `{}` treats contents as a double-quoted string. |
| 38 | 38 | /// Format `{'}` treats contents as a single-quoted string. |
| 39 | pub fn formatEscapes( | |
| 39 | fn formatEscapes( | |
| 40 | 40 | bytes: []const u8, |
| 41 | 41 | comptime fmt: []const u8, |
| 42 | 42 | options: std.fmt.FormatOptions, |