diff --git a/doc/syntax.md b/doc/syntax.md index f10550e6..a952172d 100644 --- a/doc/syntax.md +++ b/doc/syntax.md @@ -12,8 +12,8 @@ the literal text, it can be escaped by doubling: `{{` and `}}`. The grammar for a replacement field is as follows: -
-replacement_field ::= "{" [arg_id] [":" (replacement_field ::= "{" [arg_id] [":" (format_spec | chrono_format_spec)] "}"
arg_id ::= integer | identifier
integer ::= digit+
@@ -74,8 +74,8 @@ supported by the numeric types.
The general form of a *standard format specifier* is:
-
-format_spec ::= [[fill]align][sign]["#"]["0"][width]["." precision]["L"][type]
+format_spec ::= [[fill]align][sign]["#"]["0"][width]["." precision]["L"][type]
fill ::= <a character other than '{' or '}'>
align ::= "<" | ">" | "^"
sign ::= "+" | "-" | " "
@@ -401,12 +401,12 @@ Format specifications for chrono duration and time point types as well as
`std::tm` have the following syntax:
-
-chrono_format_spec ::= [[fill]chrono_format_spec ::= [[fill]align][width]["." precision][chrono_specs]
-chrono_specs ::= conversion_spec | chrono_specs (conversion_spec | literal_char)
+chrono_specs ::= conversion_spec |
+ chrono_specs (conversion_spec | literal_char)
conversion_spec ::= "%" [padding_modifier] [locale_modifier] chrono_type
literal_char ::= <a character other than '{', '}' or '%'>
padding_modifier ::= "-" | "_" | "0"
@@ -719,8 +719,8 @@ These modifiers are only supported for the `'H'`, `'I'`, `'M'`, `'S'`, `'U'`,
Format specifications for range types have the following syntax:
-
-range_format_spec ::= ["n"][range_type][range_underlying_spec]
+range_format_spec ::= ["n"][range_type][range_underlying_spec]
The `'n'` option formats the range without the opening and closing brackets.