@@ -1230,20 +1230,20 @@ grammar P6 is STD {
1230
1230
<.finishlex >
1231
1231
[
1232
1232
| '{YOU_ARE_HERE}' <.you_are_here >
1233
- | :dba ('block' ) '{' ~ '}' <statementlist > :: <.curlycheck >
1233
+ | :dba ('block' ) '{' ~ '}' <statementlist > :: <.curlycheck ( 1 ) >
1234
1234
| <?terminator > <.panic : 'Missing block' >
1235
1235
| <?> <.panic : "Malformed block" >
1236
1236
]
1237
1237
}
1238
1238
1239
- token curlycheck {
1239
+ token curlycheck ( $ code ) {
1240
1240
[
1241
1241
|| <? before \h * $$ > # (usual case without comments)
1242
1242
{ @ * MEMOS [$¢. pos ]<endstmt > = 2 ; }
1243
1243
|| <? before \h * <[ \\,: ] >>
1244
1244
|| <.unv > $$
1245
1245
{ @ * MEMOS [$¢. pos ]<endstmt > = 2 ; }
1246
- || <.unsp >? { @ * MEMOS [$¢. pos ]<endargs > = 1 ; }
1246
+ || <.unsp >? { @ * MEMOS [$¢. pos ]<endargs > = $ code ; }
1247
1247
]
1248
1248
}
1249
1249
@@ -1272,7 +1272,7 @@ grammar P6 is STD {
1272
1272
]
1273
1273
]
1274
1274
1275
- <.curlycheck >
1275
+ <.curlycheck ( 1 ) >
1276
1276
}
1277
1277
1278
1278
# statement semantics
@@ -1633,7 +1633,7 @@ grammar P6 is STD {
1633
1633
}
1634
1634
}
1635
1635
| :dba ('shape definition' ) '[' ~ ']' <semilist >
1636
- | :dba ('shape definition' ) '{' ~ '}' <semilist > <.curlycheck >
1636
+ | :dba ('shape definition' ) '{' ~ '}' <semilist > <.curlycheck ( 0 ) >
1637
1637
| <? before '<' > <postcircumfix >
1638
1638
]*
1639
1639
]?
@@ -3448,7 +3448,7 @@ grammar P6 is STD {
3448
3448
# <.finishlex> # XXX not sure if we need this
3449
3449
'{' ~ '}' <semilist > <O (| % methodcall )>
3450
3450
<.checkyada >
3451
- <.curlycheck >
3451
+ <.curlycheck ( 0 ) >
3452
3452
}
3453
3453
3454
3454
token postcircumfix :sym «< > » {
0 commit comments