def METHOD_NAME(text):
  m = re.match(r'\s+', text)
  if not m:
    m = re.match(r'%.*?$', text, re.MULTILINE)
  if not m:
    m = re.match(r'.*?;', text, re.DOTALL)
  if m:
    return text[m.end():], text[:m.end()]
  raise Exception('Could not skip to next parsable statement.')