This code: 
    
    
    import pegs
    
    static:
      var matches = newSeq[string](10)
      let
        fixedString = "mkdir  D:\...\nimgen_test\build\libmodbus"
      
      if fixedString.match(peg"cd\s+{\D}\:", matches): # <-- Error in this line
        echo matches[0]
    
    
    Run

throws /playground/nim/lib/pure/pegs.nim(1661, 13) Error: index 11 not in 0 .. 
10. Notice the static statement.

Is this a bug?

Reply via email to