diff --git a/standard/grammar.md b/standard/grammar.md index 0c46d9679..3a30dad16 100644 --- a/standard/grammar.md +++ b/standard/grammar.md @@ -703,13 +703,9 @@ nullable_value_type // Source: ยง8.4.2 Type arguments type_argument_list - : '<' type_arguments '>' + : '<' type_argument (',' type_argument)* '>' ; -type_arguments - : type_argument (',' type_argument)* - ; - type_argument : type | type_parameter nullable_type_annotation? @@ -2635,7 +2631,6 @@ global_attributes global_attribute_section : '[' global_attribute_target_specifier attribute_list ']' - | '[' global_attribute_target_specifier attribute_list ',' ']' ; global_attribute_target_specifier @@ -2652,7 +2647,6 @@ attributes attribute_section : '[' attribute_target_specifier? attribute_list ']' - | '[' attribute_target_specifier? attribute_list ',' ']' ; attribute_target_specifier @@ -2665,7 +2659,7 @@ attribute_target ; attribute_list - : attribute (',' attribute)* + : attribute (',' attribute)* ','? ; attribute