forked from HEL/chronos
		
	fixed groups with _ret
This commit is contained in:
		@@ -46,7 +46,6 @@
 | 
			
		||||
  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 == "?" {
 | 
			
		||||
@@ -60,12 +59,17 @@
 | 
			
		||||
      elmts.at(i) = elmt
 | 
			
		||||
      elmts = (
 | 
			
		||||
        elmts.slice(0, i + 1) +
 | 
			
		||||
        grp-elmts +
 | 
			
		||||
        elmt.elmts +
 | 
			
		||||
        ((
 | 
			
		||||
          type: "grp-end"
 | 
			
		||||
          type: "grp-end",
 | 
			
		||||
          start-i: i
 | 
			
		||||
        ),) +
 | 
			
		||||
        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)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user