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

All Samples(4)  |  Call(2)  |  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_snippets_file(data, filename):
    """Parse 'data' assuming it is a .snippets file. Yields events in the
    file."""
    lines = LineIterator(data)
    for line in lines:

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):
 
    python_globals = defaultdict(list)
    lines = LineIterator(data)
    current_priority = 0
    for line in lines: