Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(5)  |  Call(3)  |  Derive(0)  |  Import(2)

src/u/l/ultisnips-HEAD/pythonx/UltiSnips/snippet/source/file/snipmate.py   ultisnips(Download)
from UltiSnips.snippet.source.file._base import SnippetFileSource
from UltiSnips.snippet.source.file._common import handle_extends
from UltiSnips.text import LineIterator, head_tail
 
def _splitall(path):
def _parse_snippet(line, lines, filename):
    """Parse a snippet defintions."""
    start_line_index = lines.line_index
    trigger, description = head_tail(line[len("snippet"):].lstrip())
    content = ""
            continue
 
        head, tail = head_tail(line)
        if head == "extends":
            yield handle_extends(tail, lines.line_index)

src/u/l/ultisnips-HEAD/pythonx/UltiSnips/snippet/source/file/ultisnips.py   ultisnips(Download)
from UltiSnips.snippet.source.file._base import SnippetFileSource
from UltiSnips.snippet.source.file._common import handle_extends
from UltiSnips.text import LineIterator, head_tail
 
def find_snippet_files(ft, directory):
            continue
 
        head, tail = head_tail(line)
        if head in ("snippet", "global"):
            snippet = _handle_snippet_or_global(filename, line, lines,