Skip to content

Commit 83be942

Browse files
authored
Merge pull request #560 from rbakbashev/comma_literals
fix not considering some commas as literals
2 parents ffab2d2 + dcfc52e commit 83be942

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

src/attributes.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ Attributes
3838
| $$=$$ Expression
3939
4040
AttributeContentList ::=
41-
AttributeContent (, AttributeContent)* ,?
41+
AttributeContent ($$,$$ AttributeContent)* $$,$$?
4242

4343
.. rubric:: Legality Rules
4444

@@ -476,7 +476,7 @@ Attribute ``target_feature``
476476
$$target_feature$$ $$($$ $$enable$$ $$=$$ $$"$$ FeatureList $$"$$ $$)$$
477477

478478
FeatureList ::=
479-
Feature (, Feature)*
479+
Feature ($$,$$ Feature)*
480480

481481
Feature ::=
482482
$$adx$$
@@ -1221,7 +1221,7 @@ Attribute ``link``
12211221
$$name$$ $$=$$ StringLiteral
12221222

12231223
NativeLibraryNameWithKind ::=
1224-
NativeLibraryName , NativeLibrayKind
1224+
NativeLibraryName $$,$$ NativeLibrayKind
12251225

12261226
WebAssemblyModuleName ::=
12271227
$$wasm_import_module$$ $$=$$ StringLiteral

src/generics.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ Where Clauses
260260
$$where$$ WhereClausePredicateList
261261

262262
WhereClausePredicateList ::=
263-
WhereClausePredicate (, WhereClausePredicate)* $$,$$?
263+
WhereClausePredicate ($$,$$ WhereClausePredicate)* $$,$$?
264264

265265
WhereClausePredicate ::=
266266
LifetimeBoundPredicate

src/patterns.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -769,13 +769,13 @@ Record Struct Patterns
769769

770770
RecordStructPatternContent ::=
771771
RecordStructRestPattern
772-
| FieldDeconstructorList (, RecordStructRestPattern | ,?)
772+
| FieldDeconstructorList ($$,$$ RecordStructRestPattern | $$,$$?)
773773
774774
RecordStructRestPattern ::=
775775
OuterAttributeOrDoc* RestPattern
776776

777777
FieldDeconstructorList ::=
778-
FieldDeconstructor (, FieldDeconstructor)*
778+
FieldDeconstructor ($$,$$ FieldDeconstructor)*
779779

780780
FieldDeconstructor ::=
781781
OuterAttributeOrDoc* (

src/types-and-traits.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Types
2323
| TypeSpecificationWithoutBounds
2424
2525
TypeSpecificationList ::=
26-
TypeSpecification (, TypeSpecification)* $$,$$?
26+
TypeSpecification ($$,$$ TypeSpecification)* $$,$$?
2727

2828
TypeSpecificationWithoutBounds ::=
2929
ArrayTypeSpecification
@@ -577,7 +577,7 @@ Tuple Types
577577
$$($$ TupleFieldList? $$)$$
578578

579579
TupleFieldList ::=
580-
TupleField (, TupleField)* ,?
580+
TupleField ($$,$$ TupleField)* $$,$$?
581581

582582
TupleField ::=
583583
TypeSpecification

0 commit comments

Comments
 (0)