File tree 1 file changed +5
-7
lines changed
src/main/java/io/polypen/parse
1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -46,22 +46,20 @@ public static Token applyStarMacro(Token input) {
46
46
for (int i = 0 ; i < tokens .size (); i ++) {
47
47
Token token = tokens .get (i );
48
48
int b = bound [i ];
49
+ Token transformed = applyStarMacro (token );
49
50
if ((b & B_STRONG ) != 0 ) {
50
51
if ((b & B_MINUSBOUND ) != 0 ) {
51
- region .add (HeadToken .ofMult (VarExp .constant (-1 ), applyStarMacro (token )));
52
+ HeadToken neg = HeadToken .ofMult (VarExp .constant (-1 ), transformed );
53
+ region .add (neg );
52
54
} else {
53
- region .add (applyStarMacro ( token ) );
55
+ region .add (transformed );
54
56
}
55
57
if ((b & B_END ) != 0 ) {
56
58
exprsCopy .add (unwrap (region .copy ()));
57
59
region .clear ();
58
60
}
59
61
} else {
60
- if (!region .isEmpty ()) {
61
- exprsCopy .add (unwrap (region .copy ()));
62
- region .clear ();
63
- }
64
- exprsCopy .add (applyStarMacro (token ));
62
+ exprsCopy .add (transformed );
65
63
}
66
64
}
67
65
if (exprsCopy .isEmpty ()) {
You can’t perform that action at this time.
0 commit comments