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/parsing/_base.py   ultisnips(Download)
from UltiSnips.position import Position
from UltiSnips.snippet.parsing._lexer import tokenize, TabStopToken
from UltiSnips.text_objects import TabStop
 
def tokenize_snippet_text(snippet_instance, text, indent,
            all_tokens.append((parent, token))
            if isinstance(token, TabStopToken):
                ts = TabStop(parent, token)
                seen_ts[token.number] = ts
                _do_parse(ts, token.initial_text,
        mark = all_tokens[-1][1].end # Last token is always EndOfText
        m1 = Position(mark.line, mark.col)
        TabStop(snippet_instance, 0, mark, m1)
    snippet_instance.replace_initial_text()
 

src/u/l/ultisnips-HEAD/pythonx/UltiSnips/snippet/parsing/ultisnips.py   ultisnips(Download)
    VisualToken, TransformationToken, TabStopToken, MirrorToken, \
    PythonCodeToken, VimLCodeToken, ShellCodeToken
from UltiSnips.text_objects import EscapedChar, Mirror, PythonCode, \
        ShellCode, TabStop, Transformation, VimLCode, Visual
 
        if isinstance(token, MirrorToken):
            if token.number not in seen_ts:
                seen_ts[token.number] = TabStop(parent, token)
            else:
                Mirror(parent, seen_ts[token.number], token)