Parses the extended field-mask syntax used by the SDK.
The parser accepts wildcards, JSON-quoted keys, and groups after a common
path prefix. It ignores whitespace around commas and dots and inside groups.
Empty groups are valid.
The grammar is:
mask := union
union := path ("," path)*
path := factor ("." factor)*
factor := segment | group
segment := "*" | plainKey | quotedKey
group := "(" union? ")"
plainKey := [a-zA-Z0-9_]+
quotedKey := '"' <JSON string characters> '"'
Parses the extended field-mask syntax used by the SDK.
The parser accepts wildcards, JSON-quoted keys, and groups after a common path prefix. It ignores whitespace around commas and dots and inside groups. Empty groups are valid.
The grammar is:
Application code normally uses Mask.parse or parseFieldMask() from
@nebius/js-sdk/runtime/fieldmask.