File tree Expand file tree Collapse file tree 4 files changed +493276
-493305
lines changed Expand file tree Collapse file tree 4 files changed +493276
-493305
lines changed Original file line number Diff line number Diff line change @@ -106,6 +106,7 @@ module.exports = grammar({
106
106
supertypes : $ => [
107
107
$ . _expression ,
108
108
$ . _statements ,
109
+ $ . _argument_item ,
109
110
] ,
110
111
111
112
rules : {
@@ -1984,21 +1985,16 @@ module.exports = grammar({
1984
1985
// Unnamed node so we can reuse it for e.g. kind
1985
1986
_argument_list : $ => prec . dynamic (
1986
1987
1 ,
1987
- seq (
1988
- '(' ,
1989
- commaSep ( choice (
1990
- $ . keyword_argument ,
1991
- $ . extent_specifier ,
1992
- $ . assumed_size ,
1993
- $ . assumed_rank ,
1994
- $ . _expression ,
1995
- $ . multiple_subscript ,
1996
- $ . multiple_subscript_triplet ,
1997
- ) ) ,
1998
- ')'
1999
- )
1988
+ seq ( '(' , commaSep ( choice ( $ . _expression , $ . _argument_item ) ) , ')' )
1989
+ ) ,
1990
+ _argument_item : $ => choice (
1991
+ $ . keyword_argument ,
1992
+ $ . extent_specifier ,
1993
+ $ . assumed_size ,
1994
+ $ . assumed_rank ,
1995
+ $ . multiple_subscript ,
1996
+ $ . multiple_subscript_triplet ,
2000
1997
) ,
2001
-
2002
1998
argument_list : $ => $ . _argument_list ,
2003
1999
2004
2000
// precedence is used to prevent conflict with assignment expression
Original file line number Diff line number Diff line change @@ -19369,33 +19369,13 @@
19369
19369
{
19370
19370
"type": "CHOICE",
19371
19371
"members": [
19372
- {
19373
- "type": "SYMBOL",
19374
- "name": "keyword_argument"
19375
- },
19376
- {
19377
- "type": "SYMBOL",
19378
- "name": "extent_specifier"
19379
- },
19380
- {
19381
- "type": "SYMBOL",
19382
- "name": "assumed_size"
19383
- },
19384
- {
19385
- "type": "SYMBOL",
19386
- "name": "assumed_rank"
19387
- },
19388
19372
{
19389
19373
"type": "SYMBOL",
19390
19374
"name": "_expression"
19391
19375
},
19392
19376
{
19393
19377
"type": "SYMBOL",
19394
- "name": "multiple_subscript"
19395
- },
19396
- {
19397
- "type": "SYMBOL",
19398
- "name": "multiple_subscript_triplet"
19378
+ "name": "_argument_item"
19399
19379
}
19400
19380
]
19401
19381
},
@@ -19411,33 +19391,13 @@
19411
19391
{
19412
19392
"type": "CHOICE",
19413
19393
"members": [
19414
- {
19415
- "type": "SYMBOL",
19416
- "name": "keyword_argument"
19417
- },
19418
- {
19419
- "type": "SYMBOL",
19420
- "name": "extent_specifier"
19421
- },
19422
- {
19423
- "type": "SYMBOL",
19424
- "name": "assumed_size"
19425
- },
19426
- {
19427
- "type": "SYMBOL",
19428
- "name": "assumed_rank"
19429
- },
19430
19394
{
19431
19395
"type": "SYMBOL",
19432
19396
"name": "_expression"
19433
19397
},
19434
19398
{
19435
19399
"type": "SYMBOL",
19436
- "name": "multiple_subscript"
19437
- },
19438
- {
19439
- "type": "SYMBOL",
19440
- "name": "multiple_subscript_triplet"
19400
+ "name": "_argument_item"
19441
19401
}
19442
19402
]
19443
19403
}
19458
19418
]
19459
19419
}
19460
19420
},
19421
+ "_argument_item": {
19422
+ "type": "CHOICE",
19423
+ "members": [
19424
+ {
19425
+ "type": "SYMBOL",
19426
+ "name": "keyword_argument"
19427
+ },
19428
+ {
19429
+ "type": "SYMBOL",
19430
+ "name": "extent_specifier"
19431
+ },
19432
+ {
19433
+ "type": "SYMBOL",
19434
+ "name": "assumed_size"
19435
+ },
19436
+ {
19437
+ "type": "SYMBOL",
19438
+ "name": "assumed_rank"
19439
+ },
19440
+ {
19441
+ "type": "SYMBOL",
19442
+ "name": "multiple_subscript"
19443
+ },
19444
+ {
19445
+ "type": "SYMBOL",
19446
+ "name": "multiple_subscript_triplet"
19447
+ }
19448
+ ]
19449
+ },
19461
19450
"argument_list": {
19462
19451
"type": "SYMBOL",
19463
19452
"name": "_argument_list"
21571
21560
],
21572
21561
"supertypes": [
21573
21562
"_expression",
21574
- "_statements"
21563
+ "_statements",
21564
+ "_argument_item"
21575
21565
],
21576
21566
"reserved": {}
21577
21567
}
You can’t perform that action at this time.
0 commit comments