LEADING_ZERO_REGEX

Static LEADING_ZERO_REGEX 

Source
pub(crate) static LEADING_ZERO_REGEX: LazyLock<Regex>
Expand description

Strips leading zeros from integer literals (HLSL allows 02 for 2, WGSL rejects them with invalid numeric literal format). Targets only integer literals — 0.5 and 0 and 100 are untouched because the pattern requires \b0+ followed by another decimal digit (so 0. and 0) never match).