Skip to content

Commit f89b762

Browse files
authored
Merge pull request #388 from SergioBenitez/master
Stabilize 'attr_literals' feature.
2 parents c04a1d9 + 4c307d5 commit f89b762

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/attributes.md

+2-3
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@
1313
> _MetaItem_ :\
1414
>       IDENTIFIER\
1515
>    | IDENTIFIER `=` LITERAL\
16-
>    | IDENTIFIER `(` LITERAL `)`\
1716
>    | IDENTIFIER `(` _MetaSeq_ `)`
1817
>
1918
> _MetaSeq_ :\
2019
>       EMPTY\
2120
>    | _MetaItem_\
21+
>    | LITERAL\
2222
>    | _MetaItem_ `,` _MetaSeq_
2323
2424
An _attribute_ is a general, free-form metadatum that is interpreted according
@@ -30,9 +30,8 @@ Attributes may appear as any of:
3030
* A single identifier, the _attribute name_
3131
* An identifier followed by the equals sign '=' and a literal, providing a
3232
key/value pair
33-
* An identifier followed by a parenthesized literal, providing a
34-
key/value pair
3533
* An identifier followed by a parenthesized list of sub-attribute arguments
34+
which include literals
3635

3736
_Inner attributes_, written with a bang ("!") after the hash ("#"), apply to the
3837
item that the attribute is declared within. _Outer attributes_, written without

0 commit comments

Comments
 (0)