Range formatter grammar · Issue #4566 · fmtlib/fmt · GitHub
Skip to content

Range formatter grammar #4566

Description

@petersteneteg

I was trying to understand the grammar of the range formatters here:
https://fmt.dev/latest/syntax/#range-format-specifications

it is stated to be:
range_format_spec ::= ["n"][range_type][range_underlying_spec]
is supposed to be
range_format_spec ::= ["n"][range_type][":" range_underlying_spec]

I assume that the range_underlying_spec is the format_spec fot the the underlaying type, like for example:
https://fmt.dev/latest/syntax/#format-spec](https://fmt.dev/latest/syntax/#format-spec

which does not include the ":"

Or am I missing something?

would be great with an example that specifies both the (n|range_type) and the range_underlying_spec at the same time

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions