Release 0.2.1 #9
| @@ -46,7 +46,6 @@ | |||||||
|   while i < elmts.len() { |   while i < elmts.len() { | ||||||
|     let elmt = elmts.at(i) |     let elmt = elmts.at(i) | ||||||
|     if elmt.type == "grp" { |     if elmt.type == "grp" { | ||||||
|       let grp-elmts = elmt.elmts |  | ||||||
|       elmt.elmts = elmt.elmts.map(e => { |       elmt.elmts = elmt.elmts.map(e => { | ||||||
|         if e.type == "seq" { |         if e.type == "seq" { | ||||||
|           if e.p1 == "?" { |           if e.p1 == "?" { | ||||||
| @@ -60,12 +59,17 @@ | |||||||
|       elmts.at(i) = elmt |       elmts.at(i) = elmt | ||||||
|       elmts = ( |       elmts = ( | ||||||
|         elmts.slice(0, i + 1) + |         elmts.slice(0, i + 1) + | ||||||
|         grp-elmts + |         elmt.elmts + | ||||||
|         (( |         (( | ||||||
|           type: "grp-end" |           type: "grp-end", | ||||||
|  |           start-i: i | ||||||
|         ),) + |         ),) + | ||||||
|         elmts.slice(i+1) |         elmts.slice(i+1) | ||||||
|       ) |       ) | ||||||
|  |     } else if elmt.type == "grp-end" { | ||||||
|  |       // Put back elements in group because they might have changed | ||||||
|  |       elmts.at(elmt.start-i).elmts = elmts.slice(elmt.start-i + 1, i) | ||||||
|  |  | ||||||
|     } else if elmt.type == "seq" { |     } else if elmt.type == "seq" { | ||||||
|       if elmt.enable-dst { |       if elmt.enable-dst { | ||||||
|         activation-history.push(elmt) |         activation-history.push(elmt) | ||||||
|   | |||||||
| @@ -36,6 +36,9 @@ | |||||||
|       max-i = calc.max(max-i, i1) |       max-i = calc.max(max-i, i1) | ||||||
|     } |     } | ||||||
|   } |   } | ||||||
|  |   if max-i < min-i { | ||||||
|  |     (min-i, max-i) = (max-i, min-i) | ||||||
|  |   } | ||||||
|   return (min-i, max-i) |   return (min-i, max-i) | ||||||
| } | } | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user