diff options
Diffstat (limited to 'docs')
-rw-r--r-- | docs/markdown/Reference-manual.md | 6 | ||||
-rw-r--r-- | docs/markdown/Syntax.md | 2 | ||||
-rw-r--r-- | docs/markdown/snippets/summary_prog_dep.md | 4 |
3 files changed, 10 insertions, 2 deletions
diff --git a/docs/markdown/Reference-manual.md b/docs/markdown/Reference-manual.md index 802002b..cb8347a 100644 --- a/docs/markdown/Reference-manual.md +++ b/docs/markdown/Reference-manual.md @@ -1313,7 +1313,11 @@ The content is a series of key/value pairs grouped into sections. If the section keyword argument is omitted, those key/value pairs are implicitly grouped into a section with no title. key/value pairs can optionally be grouped into a dictionary, but keep in mind that dictionaries does not guarantee ordering. `key` must be string, -`value` can only be integer, boolean, string, or a list of those. +`value` can be: + +- an integer, boolean or string +- *since 0.57.0* an external program or a dependency +- a list of those. `summary()` can be called multiple times as long as the same section/key pair doesn't appear twice. All sections will be collected and printed at diff --git a/docs/markdown/Syntax.md b/docs/markdown/Syntax.md index 65cb70f..4f17ac8 100644 --- a/docs/markdown/Syntax.md +++ b/docs/markdown/Syntax.md @@ -657,7 +657,7 @@ equality_expression: relational_expression | (equality_expression equality_opera equality_operator: "==" | "!=" expression: assignment_expression expression_list: expression ("," expression)* -expression_statememt: expression +expression_statement: expression function_expression: id_expression "(" [argument_list] ")" hex_literal: "0x" HEX_NUMBER HEX_NUMBER: /[a-fA-F0-9]+/ diff --git a/docs/markdown/snippets/summary_prog_dep.md b/docs/markdown/snippets/summary_prog_dep.md new file mode 100644 index 0000000..6f0262f --- /dev/null +++ b/docs/markdown/snippets/summary_prog_dep.md @@ -0,0 +1,4 @@ +## `summary()` accepts external programs or dependencies + +External program objects and dependency objects can be passed to +`summary()` as the value to be printed. |