def t_start_triple_quoted_q1_string(t):
    """([bB]|[uU])?[rR]?'''"""
    t.lexer.push_state('TRIPLEQ1')
    t.type = 'STRING_START_TRIPLE'
    if 'r' in t.value or 'R' in t.value:
        t.lexer.is_raw = True
    t.value = t.value.split("'", 1)[0]
    return t
