File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed
src/main/java/io/polypen/parse Expand file tree Collapse file tree 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) {
4646 for (int i = 0 ; i < tokens .size (); i ++) {
4747 Token token = tokens .get (i );
4848 int b = bound [i ];
49+ Token transformed = applyStarMacro (token );
4950 if ((b & B_STRONG ) != 0 ) {
5051 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 );
5254 } else {
53- region .add (applyStarMacro ( token ) );
55+ region .add (transformed );
5456 }
5557 if ((b & B_END ) != 0 ) {
5658 exprsCopy .add (unwrap (region .copy ()));
5759 region .clear ();
5860 }
5961 } else {
60- if (!region .isEmpty ()) {
61- exprsCopy .add (unwrap (region .copy ()));
62- region .clear ();
63- }
64- exprsCopy .add (applyStarMacro (token ));
62+ exprsCopy .add (transformed );
6563 }
6664 }
6765 if (exprsCopy .isEmpty ()) {
You can’t perform that action at this time.
0 commit comments