Add the directive form of a group (`!group`) v0.10.0
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Mon, 2 Oct 2023 16:02:02 +0000 (12:02 -0400)
committerPhilippe Proulx <eeppeliteloop@gmail.com>
Mon, 2 Oct 2023 16:04:10 +0000 (12:04 -0400)
commit261c5ecfc67f0cb56a39f27a6d70542ac2d6a2cf
tree074332c35d2a776a39ab9f46b217b27380919593
parent9f2ce91e06d63e6f2e51fe640d3c835e6bcfa11b
Add the directive form of a group (`!group`)

This is to add some consistency regarding items which may contain other
items: I want all of them to have an available `!xyz` form.

Normand already has `!if` and `!repeat`, not it has `!group` (and the
alias `!g`).

The following two groups are equivalent:

    (
      aa bb cc
    ) * 5

    !group
      aa bb cc
    !end * 5

Change-Id: I00b2789c078c9b9216ab9b732bc3adeff39b0642
Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
22 files changed:
README.adoc
normand/normand.py
pyproject.toml
tests/fail-group-blk-missing-end.nt [new file with mode: 0644]
tests/fail-group-blk-wrong-end.nt [new file with mode: 0644]
tests/fail-group-missing-suffix.nt [deleted file]
tests/fail-group-paren-missing-end.nt [new file with mode: 0644]
tests/fail-group-paren-wrong-end.nt [new file with mode: 0644]
tests/pass-group-blk-g.nt [new file with mode: 0644]
tests/pass-group-blk-label-1.nt [new file with mode: 0644]
tests/pass-group-blk-label-2.nt [new file with mode: 0644]
tests/pass-group-blk-label-3.nt [new file with mode: 0644]
tests/pass-group-blk-no-rep.nt [new file with mode: 0644]
tests/pass-group-label-1.nt [deleted file]
tests/pass-group-label-2.nt [deleted file]
tests/pass-group-label-3.nt [deleted file]
tests/pass-group-no-rep.nt [deleted file]
tests/pass-group-paren-label-1.nt [new file with mode: 0644]
tests/pass-group-paren-label-2.nt [new file with mode: 0644]
tests/pass-group-paren-label-3.nt [new file with mode: 0644]
tests/pass-group-paren-no-rep.nt [new file with mode: 0644]
tests/pass-readme-learn-group-2.nt
This page took 0.024761 seconds and 4 git commands to generate.