示例#1
0
def rem_insert_end():
    return literal('<#<')
示例#2
0
def until_block_maybe():
    return __(r'.*?(?=>)'), And(literal('>'))
示例#3
0
def ref_insert_end():
    return literal('<')
示例#4
0
def rem_insert_start():
    return literal('>#>')
示例#5
0
def ref_insert_start():
    return literal('>'), And([literal('['), literal('{')])
示例#6
0
def ref_insert_middle():
    return [(literal('['), identifier, literal(']')),
            (literal('{'), identifier, literal('}'))], And(literal('<'))
示例#7
0
def block_freeform_end():
    return literal('}'), anyws, block_end
示例#8
0
def block_freeform():
    return literal('{'), ZeroOrMore((ws, literal('<-{'))),
示例#9
0
def block_end():
    return literal('<<<')
示例#10
0
def block_tabular():
    return literal('<'), ws
示例#11
0
def block_start():
    return literal('>->'), identifier, literal('<'), [
        literal('+'), literal('-')
    ]