After doing more tests it turned out that only those argument lists are cropped which contain an array, eg. SUB BlaBla (x%, y%(), z%), then the list is cropped after the closing parantesis of the array argument, so I suspect a problem with parantesis detection.