Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit af7ef62

Browse files
committed
Remove attribute list from array declaration grammar rule
Fixes: #1534 since this is the last attribute that may be applied to a type declaration.
1 parent 58aa16f commit af7ef62

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

wgsl/extract-grammar.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,6 @@ def parse(lines, i):
238238
],
239239
240240
conflicts: $ => [
241-
[$.array_type_decl],
242241
[$.type_decl,$.primary_expression],
243242
],
244243

wgsl/index.bs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1231,7 +1231,7 @@ of a variable in [=storage classes/workgroup=] storage.
12311231
<div class='syntax' noexport='true'>
12321232
<dfn for=syntax>array_type_decl</dfn> :
12331233

1234-
| [=syntax/attribute_list=] * [=syntax/array=] [=syntax/less_than=] [=syntax/type_decl=] ( [=syntax/comma=] [=syntax/element_count_expression=] ) ? [=syntax/greater_than=]
1234+
| [=syntax/array=] [=syntax/less_than=] [=syntax/type_decl=] ( [=syntax/comma=] [=syntax/element_count_expression=] ) ? [=syntax/greater_than=]
12351235
</div>
12361236
<div class='syntax' noexport='true'>
12371237
<dfn for=syntax>element_count_expression</dfn> :

0 commit comments

Comments
 (0)