POSTFIX_INC_REGEX

Static POSTFIX_INC_REGEX 

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

Postfix <ident>++ and <ident>-- (HLSL increment/decrement). WGSL has no postfix operators; we rewrite to the equivalent compound assignment <ident> = <ident> + 1 only at statement boundaries (; or )) so expression-position uses like a[i++] don’t get mangled. Real preset pattern: n++; at end of a per-iteration loop.