aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2016-10-27 11:06:39 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2016-11-04 09:26:36 +0200
commit722b5857aa431cad20735dcbf850e82f1eaf70e8 (patch)
tree57994a5d27ecdf805005c8a7a39d375f20ec68f5 /doc
parent33c5d3e0fce306631bad78ba3a4a87bb1f719fa5 (diff)
Add description to testscript grammar
Diffstat (limited to 'doc')
-rw-r--r--doc/testscript.cli10
1 files changed, 9 insertions, 1 deletions
diff --git a/doc/testscript.cli b/doc/testscript.cli
index 4586432..3e79ba8 100644
--- a/doc/testscript.cli
+++ b/doc/testscript.cli
@@ -718,13 +718,18 @@ teardown:
variable-line|teardown-line
scope:
+ description?
'{'
scope-body
'}'
test:
+ description?
*((variable-line|test-line) ';')
- test-line
+ test-line (':' <text>)?
+
+description:
+ +(':' <text>)
variable-line: <variable> ('='|'+='|'=+') value-attributes? <value>
value-attributes: '[' <key-value-pairs> ']'
@@ -782,6 +787,9 @@ same time is illegal.
Here-line is like double-quoted string but recognizes newlines.
+It is an error to specify both normal (better term?) and inline descriptions
+for a test.
+
\
script:
(script-scope|script-line)*