Skip to content

Commit 49c50e0

Browse files
committed
[S05-grammar/protoregex.t] Use current syntax
1 parent 73505a2 commit 49c50e0

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

S05-grammar/protoregex.t

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -39,64 +39,64 @@ is $match<alt>.ast, 'bazbaz', 'action method got called, make() worked';
3939

4040

4141
grammar LTM {
42-
proto token lit { * }
42+
proto token lit {*}
4343
token lit:sym<foo> { 'foo' }
4444
token lit:sym<foobar> { 'foobar' }
4545
token lit:sym<foob> { 'foob' }
4646

47-
proto token cclass1 { * }
47+
proto token cclass1 {*}
4848
token cclass1:sym<a> { <[0..9]> }
4949
token cclass1:sym<b> { <[0..9]> '.' <[0..9]> }
5050

51-
proto token cclass2 { * }
51+
proto token cclass2 {*}
5252
token cclass2:sym<a> { <[0..9]> '.' <[0..9]> }
5353
token cclass2:sym<b> { <[0..9]> }
5454

55-
proto token cclass3 { * }
55+
proto token cclass3 {*}
5656
token cclass3:sym<a> { \d\d }
5757
token cclass3:sym<b> { 1 }
5858

59-
proto token cclass4 { * }
59+
proto token cclass4 {*}
6060
token cclass4:sym<a> { '.' }
6161
token cclass4:sym<b> { \W\W }
6262

63-
proto token quant1 { * }
63+
proto token quant1 {*}
6464
token quant1:sym<a> { ab? }
6565
token quant1:sym<b> { a }
6666

67-
proto token quant2 { * }
67+
proto token quant2 {*}
6868
token quant2:sym<a> { a }
6969
token quant2:sym<c> { ab+ }
7070
token quant2:sym<b> { ab? }
7171

72-
proto token quant3 { * }
72+
proto token quant3 {*}
7373
token quant3:sym<a> { aaa }
7474
token quant3:sym<b> { a* }
7575

76-
proto token declok { <*> }
76+
proto token declok {*}
7777
token declok:sym<a> {
7878
:my $x := 42;
7979
.+
8080
}
8181
token declok:sym<b> { aa }
8282

83-
proto token cap1 { <*> }
83+
proto token cap1 {*}
8484
token cap1:sym<a> { (.+) }
8585
token cap1:sym<b> { aa }
8686

87-
proto token cap2 { <*> }
87+
proto token cap2 {*}
8888
token cap2:sym<a> { $<x>=[.+] }
8989
token cap2:sym<b> { aa }
9090

91-
proto token ass1 { <*> }
91+
proto token ass1 {*}
9292
token ass1:sym<a> { a <?{ 1 }> .+ }
9393
token ass1:sym<b> { aa }
9494

95-
proto token ass2 { <*> }
95+
proto token ass2 {*}
9696
token ass2:sym<a> { a <!{ 0 }> .+ }
9797
token ass2:sym<b> { aa }
9898

99-
proto token block { <*> }
99+
proto token block {*}
100100
token block:sym<a> { a {} .+ }
101101
token block:sym<b> { aa }
102102
}

0 commit comments

Comments
 (0)