@@ -222,31 +222,31 @@ token category:quote_mod { <sym> }
222
222
proto token quote_mod {* }
223
223
224
224
token category :trait_mod { <sym > }
225
- proto token trait_mod (: $ * endsym = ' spacey ' ) {* }
225
+ proto token trait_mod (: $ * endsym = ' keyspace ' ) {* }
226
226
227
227
token category :type_declarator { <sym > }
228
- proto token type_declarator (: $ * endsym = ' spacey ' ) {* }
228
+ proto token type_declarator (: $ * endsym = ' keyspace ' ) {* }
229
229
230
230
token category :scope_declarator { <sym > }
231
231
proto token scope_declarator (: $ * endsym = ' nofun' ) {* }
232
232
233
233
token category :package_declarator { <sym > }
234
- proto token package_declarator (: $ * endsym = ' spacey ' ) {* }
234
+ proto token package_declarator (: $ * endsym = ' keyspace ' ) {* }
235
235
236
236
token category :multi_declarator { <sym > }
237
- proto token multi_declarator (: $ * endsym = ' spacey ' ) {* }
237
+ proto token multi_declarator (: $ * endsym = ' keyspace ' ) {* }
238
238
239
239
token category :routine_declarator { <sym > }
240
240
proto token routine_declarator (: $ * endsym = ' nofun' ) {* }
241
241
242
242
token category :regex_declarator { <sym > }
243
- proto token regex_declarator (: $ * endsym = ' spacey ' ) {* }
243
+ proto token regex_declarator (: $ * endsym = ' keyspace ' ) {* }
244
244
245
245
token category :statement_prefix { <sym > }
246
246
proto rule statement_prefix () {* }
247
247
248
248
token category :statement_control { <sym > }
249
- proto rule statement_control (: $ * endsym = ' spacey ' ) {* }
249
+ proto rule statement_control (: $ * endsym = ' keyspace ' ) {* }
250
250
251
251
token category :statement_mod_cond { <sym > }
252
252
proto rule statement_mod_cond (: $ * endsym = ' nofun' ) {* }
@@ -278,7 +278,8 @@ proto token terminator {*}
278
278
token unspacey { <.unsp >? }
279
279
token begid { <? before \w > }
280
280
token endid { <? before <- [ \- \' \w ] > > }
281
- token spacey { <? before <- [ ( ] > > [ <? before <[ \s \# ] > > || <.panic : "Whitespace required after keyword" > ] }
281
+ token spacey { <? before <[ \s \# ] > > }
282
+ token keyspace { <? before <- [ ( ] > > [ <? before <[ \s \# ] > > || <.panic : "Whitespace required after keyword" > ] }
282
283
token nofun { <! before '(' | '.(' | '\\' | '\'' | '-' | "'" | \w > }
283
284
284
285
# Note, don't reduce on a bare sigil unless you don't want a twigil or
@@ -1448,11 +1449,11 @@ grammar P6 is STD {
1448
1449
[
1449
1450
[
1450
1451
| 'else' \h * 'if' <.sorry : "Please use 'elsif'" >
1451
- | 'elsif' <?spacey > <elsif = .xblock >
1452
+ | 'elsif' <?keyspace > <elsif = .xblock >
1452
1453
]
1453
1454
]*
1454
1455
[
1455
- 'else' <?spacey > <else = .pblock >
1456
+ 'else' <?keyspace > <else = .pblock >
1456
1457
]?
1457
1458
}
1458
1459
@@ -1481,10 +1482,10 @@ grammar P6 is STD {
1481
1482
token statement_control :repeat {
1482
1483
<sym > :s
1483
1484
[
1484
- | $ < wu > =['while' | 'until' ]<.spacey >
1485
+ | $ < wu > =['while' | 'until' ]<.keyspace >
1485
1486
<xblock >
1486
1487
| <pblock >
1487
- $ < wu > =['while' | 'until' ][<.spacey >|| <.panic : "Whitespace required after keyword" >] <EXPR >
1488
+ $ < wu > =['while' | 'until' ][<.keyspace >|| <.panic : "Whitespace required after keyword" >] <EXPR >
1488
1489
]
1489
1490
}
1490
1491
0 commit comments