Bracket-style detection for color format strings.
Splits out the bracket-style heuristic from Pote.Validator so that
the validator remains focused on value parsing.
Not part of the public API — used only by Pote.Validator.
Format rules
Most color formats use parentheses (rgb:R,G,B), not curly braces.
This helper detects the common typo rgb:{R,G,B} and returns an
informative error.
Currently supported: rgb, argb, hsl, hsv, cmyk. Other
formats return nil (no bracket-specific advice).
Summary
Functions
Checks if code uses curly braces instead of parentheses.
Functions
Checks if code uses curly braces instead of parentheses.
Returns:
{:error, atom(), String.t()}— bracket-style mismatch errornil— no bracket issue detected (or format doesn't care)