def _parse_snippet(line, lines, filename):
 start_line_index = lines.line_index
 (trigger, description) = head_tail(line[len('snippet'):].lstrip())
 content = ''
 while True:
  next_line = lines.peek()
  if (next_line is None):
   break
  if (next_line.strip() and (not next_line.startswith(' DCTB '))):
   break
  line = next(lines)
  if (line[0] == ' DCTB '):
   line = line[1:]
  content += line
 content = content[:(-1)]
 return ('snippet', (SnipMateSnippetDefinition(trigger, content, description, ('%s:%i' % (filename, start_line_index))),))

def _parse_snippet ( line , lines , filename ) : start_line_index = lines . line_index ( trigger , description ) = head_tail ( line [ len ( 'snippet' ) : ] . lstrip ( ) ) content = '' while True : next_line = lines . peek ( ) if ( next_line is None ) : break if ( next_line . strip ( ) and ( not next_line . startswith ( ' DCTB ' ) ) ) : break line = next ( lines ) if ( line [ 0 ] == ' DCTB ' ) : line = line [ 1 : ] content += line content = content [ : ( - 1 ) ] return ( 'snippet' , ( SnipMateSnippetDefinition ( trigger , content , description , ( '%s:%i' % ( filename , start_line_index ) ) ) , ) )
parse a snippet defintions .