zig/lib
Carl Åstholm d8e7eda5f4 std.zig.fmtId: conditionally escape primitives/_
This is a breaking change.

This updates `std.zig.fmtId` to support conditionally escaping
primitives and the reserved `_` identifier via format specifiers:

- `{}`: escape invalid identifiers, identifiers that shadow primitives
  and the reserved `_` identifier.
- `{p}`: same as `{}`, but don't escape identifiers that
  shadow primitives.
- `{_}`: same as `{}`, but don't escape the reserved `_` identifier.
- `{p_}` or `{_p}`: only escape invalid identifiers.

(The idea is that `p`/`_` mean "allow primitives/underscores".)

Any other format specifiers will result in compile errors.

Additionally, `isValidId` now considers `_` a valid identifier. If this
distinction is important, consider combining existing uses of this
function with the new `isUnderscore` function.
2024-04-07 14:47:10 +02:00
..
compiler zig std accepts --port and --no-open-browser (#19559) 2024-04-06 15:18:43 -04:00
compiler_rt bsd: followup to std.posix extraction from std.os 2024-03-20 14:06:35 -07:00
docs Update uses of @fieldParentPtr to use RLS 2024-03-30 20:50:48 -04:00
include update C language headers to LLVM 17 2023-09-19 09:37:31 -07:00
init Grammar fixes (#18320) 2023-12-20 13:17:15 +02:00
libc mingw: support -municode 2024-03-27 10:05:57 +00:00
libcxx update libcxx to latest LLVM release/17.x 2023-09-19 09:37:53 -07:00
libcxxabi libcxxabi: update to LLVM 17 2023-09-19 09:37:31 -07:00
libunwind libunwind: update to LLVM 17 2023-09-19 09:37:31 -07:00
std std.zig.fmtId: conditionally escape primitives/_ 2024-04-07 14:47:10 +02:00
tsan tsan: update rtl files to LLVM 17.0.6 2024-01-10 01:00:37 -07:00
c.zig std.builtin: make link mode fields lowercase 2024-03-11 07:09:10 -07:00
compiler_rt.zig move libssp into libcompiler_rt 2023-11-10 13:12:10 -07:00
zig.h cbe: fix uncovered bugs 2024-03-30 20:50:48 -04:00