Skip to content

fix not considering some commas as literals #560

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/attributes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ Attributes
| $$=$$ Expression

AttributeContentList ::=
AttributeContent (, AttributeContent)* ,?
AttributeContent ($$,$$ AttributeContent)* $$,$$?

.. rubric:: Legality Rules

Expand Down Expand Up @@ -472,7 +472,7 @@ Attribute ``target_feature``
$$target_feature$$ $$($$ $$enable$$ $$=$$ $$"$$ FeatureList $$"$$ $$)$$

FeatureList ::=
Feature (, Feature)*
Feature ($$,$$ Feature)*

Feature ::=
$$adx$$
Expand Down Expand Up @@ -1030,7 +1030,7 @@ Attribute ``link``
$$name$$ $$=$$ StringLiteral

NativeLibraryNameWithKind ::=
NativeLibraryName , NativeLibrayKind
NativeLibraryName $$,$$ NativeLibrayKind

WebAssemblyModuleName ::=
$$wasm_import_module$$ $$=$$ StringLiteral
Expand Down
2 changes: 1 addition & 1 deletion src/generics.rst
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ Where Clauses
$$where$$ WhereClausePredicateList

WhereClausePredicateList ::=
WhereClausePredicate (, WhereClausePredicate)* $$,$$?
WhereClausePredicate ($$,$$ WhereClausePredicate)* $$,$$?

WhereClausePredicate ::=
LifetimeBoundPredicate
Expand Down
4 changes: 2 additions & 2 deletions src/patterns.rst
Original file line number Diff line number Diff line change
Expand Up @@ -769,13 +769,13 @@ Record Struct Patterns

RecordStructPatternContent ::=
RecordStructRestPattern
| FieldDeconstructorList (, RecordStructRestPattern | ,?)
| FieldDeconstructorList ($$,$$ RecordStructRestPattern | $$,$$?)

RecordStructRestPattern ::=
OuterAttributeOrDoc* RestPattern

FieldDeconstructorList ::=
FieldDeconstructor (, FieldDeconstructor)*
FieldDeconstructor ($$,$$ FieldDeconstructor)*

FieldDeconstructor ::=
OuterAttributeOrDoc* (
Expand Down
4 changes: 2 additions & 2 deletions src/types-and-traits.rst
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Types
| TypeSpecificationWithoutBounds

TypeSpecificationList ::=
TypeSpecification (, TypeSpecification)* $$,$$?
TypeSpecification ($$,$$ TypeSpecification)* $$,$$?

TypeSpecificationWithoutBounds ::=
ArrayTypeSpecification
Expand Down Expand Up @@ -576,7 +576,7 @@ Tuple Types
$$($$ TupleFieldList? $$)$$

TupleFieldList ::=
TupleField (, TupleField)* ,?
TupleField ($$,$$ TupleField)* $$,$$?

TupleField ::=
TypeSpecification
Expand Down