def parse_directive(d):
 dir = d.strip()
 if (not dir.startswith('.')):
  return (dir, '')
 m = dir_sig_re.match(dir)
 if (not m):
  return (dir, '')
 (parsed_dir, parsed_args) = m.groups()
 return (parsed_dir.strip(), (' ' + parsed_args.strip()))

def parse_directive ( d ) : dir = d . strip ( ) if ( not dir . startswith ( '.' ) ) : return ( dir , '' ) m = dir_sig_re . match ( dir ) if ( not m ) : return ( dir , '' ) ( parsed_dir , parsed_args ) = m . groups ( ) return ( parsed_dir . strip ( ) , ( ' ' + parsed_args . strip ( ) ) )
parse a directive signature .