From 687cabc5762174a3785f13a5047f56fdc0094127 Mon Sep 17 00:00:00 2001 From: Mateusz Pusz Date: Wed, 18 Mar 2020 12:17:12 +0100 Subject: [PATCH] Grammar updated --- docs/framework/text_output.rst | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/docs/framework/text_output.rst b/docs/framework/text_output.rst index e2ea6a5a..da4e1c5f 100644 --- a/docs/framework/text_output.rst +++ b/docs/framework/text_output.rst @@ -36,14 +36,18 @@ Grammar ^^^^^^^ .. productionlist:: - units-format-spec: [fill-and-align] [sign] [width] [precision] [type] [units-specs] + units-format-spec: [fill-and-align] [width] [units-specs] units-specs: conversion-spec : units-specs conversion-spec : units-specs literal-char literal-char: any character other than '{' or '}' - conversion-spec: '%' [modifier] units-type - modifier: 'A' - units-type: one of 'n', 'q', 'Q', 't', '%' + conversion-spec: '%' units-type + units-type: [units-rep-modifier] 'Q' + : [units-unit-modifier] 'q' + : one of 'n', 't', '%' + units-rep-modifier: [sign] [#] [precision] [units-rep-type] + units-rep-type: one of 'a', 'A', 'b', 'B', 'd', 'e', 'E', 'f', 'F', 'g', 'G', 'o', 'x', 'X' + units-unit-modifier: 'A' Default formatting