def t_nowdoc_END_NOWDOC(t):
    """(?<=\\n)[A-Za-z_][\\w_]*"""
    if t.value == t.lexer.nowdoc_label:
        del t.lexer.nowdoc_label
        t.lexer.pop_state()
    else:
        t.type = 'ENCAPSED_AND_WHITESPACE'
    return t
