Skip to content

Automated Section renumber and grammar extraction #1319

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

Merged
merged 1 commit into from
May 1, 2025
Merged
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
10 changes: 2 additions & 8 deletions standard/grammar.md
Original file line number Diff line number Diff line change
Expand Up @@ -703,13 +703,9 @@

// 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?
Expand Down Expand Up @@ -1004,8 +1000,8 @@
: primary_expression '(' argument_list? ')'
;

// Source: §12.8.11 Null Conditional Invocation Expression

Check warning on line 1003 in standard/grammar.md

View workflow job for this annotation

GitHub Actions / Markdown to Word Converter

standard/grammar.md#L1003

MDC032::Line length 84 > maximum 81
null_conditional_invocation_expression

Check warning on line 1004 in standard/grammar.md

View workflow job for this annotation

GitHub Actions / Markdown to Word Converter

standard/grammar.md#L1004

MDC032::Line length 85 > maximum 81
: null_conditional_member_access null_forgiving_operator? '(' argument_list? ')'
| null_conditional_element_access null_forgiving_operator? '(' argument_list? ')'
;
Expand Down Expand Up @@ -1181,7 +1177,7 @@
;

// Source: §12.8.22 Stack allocation
stackalloc_expression

Check warning on line 1180 in standard/grammar.md

View workflow job for this annotation

GitHub Actions / Markdown to Word Converter

standard/grammar.md#L1180

MDC032::Line length 86 > maximum 81
: 'stackalloc' unmanaged_type '[' expression ']'
| 'stackalloc' unmanaged_type? '[' constant_expression? ']' stackalloc_initializer
;
Expand Down Expand Up @@ -1964,7 +1960,7 @@
type_parameter_constraints_clause
: 'where' type_parameter ':' type_parameter_constraints
;

Check warning on line 1963 in standard/grammar.md

View workflow job for this annotation

GitHub Actions / Markdown to Word Converter

standard/grammar.md#L1963

MDC032::Line length 83 > maximum 81
type_parameter_constraints
: primary_constraint (',' secondary_constraints)? (',' constructor_constraint)?
| secondary_constraints (',' constructor_constraint)?
Expand Down Expand Up @@ -2327,7 +2323,7 @@
logical_negation_operator
: '!'
;

Check warning on line 2326 in standard/grammar.md

View workflow job for this annotation

GitHub Actions / Markdown to Word Converter

standard/grammar.md#L2326

MDC032::Line length 82 > maximum 81
overloadable_unary_operator
: '+' | '-' | logical_negation_operator | '~' | '++' | '--' | 'true' | 'false'
;
Expand Down Expand Up @@ -2635,7 +2631,6 @@

global_attribute_section
: '[' global_attribute_target_specifier attribute_list ']'
| '[' global_attribute_target_specifier attribute_list ',' ']'
;

global_attribute_target_specifier
Expand All @@ -2652,7 +2647,6 @@

attribute_section
: '[' attribute_target_specifier? attribute_list ']'
| '[' attribute_target_specifier? attribute_list ',' ']'
;

attribute_target_specifier
Expand All @@ -2665,7 +2659,7 @@
;

attribute_list
: attribute (',' attribute)*
: attribute (',' attribute)* ','?
;

attribute
Expand Down
Loading