Compare commits

..

No commits in common. "3eadf63db3f447234274dd86e5dbd48875ea0698" and "dfb980e36699c6cea86f19a0581a3ed9e90b9668" have entirely different histories.

2 changed files with 3 additions and 10 deletions

View File

@ -46,6 +46,7 @@
while i < elmts.len() {
let elmt = elmts.at(i)
if elmt.type == "grp" {
let grp-elmts = elmt.elmts
elmt.elmts = elmt.elmts.map(e => {
if e.type == "seq" {
if e.p1 == "?" {
@ -59,17 +60,12 @@
elmts.at(i) = elmt
elmts = (
elmts.slice(0, i + 1) +
elmt.elmts +
grp-elmts +
((
type: "grp-end",
start-i: i
type: "grp-end"
),) +
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" {
if elmt.enable-dst {
activation-history.push(elmt)

View File

@ -36,9 +36,6 @@
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)
}