File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -996,14 +996,18 @@ class RakuAST::Deparse {
996
996
multi method deparse (
997
997
RakuAST::Regex::CharClassElement::Enumeration: D $ ast
998
998
--> Str : D ) {
999
- ' [' ~ $ ast . elements. map ({ self . deparse($ _ ) }). join (' ' ) ~ ' ]'
999
+ ($ ast . negated ?? ' -' !! ' +' )
1000
+ ~ ' [' ~ $ ast . elements. map ({ self . deparse($ _ ) }). join (' ' ) ~ ' ]'
1000
1001
}
1001
1002
1002
1003
multi method deparse (
1003
1004
RakuAST::Regex::CharClassElement::Property: D $ ast
1004
1005
--> Str : D ) {
1005
- my str @ parts = ' :' ;
1006
- @ parts . push (' -' ) if $ ast . inverted;
1006
+ my str @ parts ;
1007
+
1008
+ @ parts . push ($ ast . negated ?? ' -' !! ' +' );
1009
+ @ parts . push (' :' );
1010
+ @ parts . push (' !' ) if $ ast . inverted;
1007
1011
@ parts . push ($ ast . property);
1008
1012
@ parts . push (self . deparse($ _ )) with $ ast . predicate;
1009
1013
@ parts . join
You can’t perform that action at this time.
0 commit comments