#NEWLINE# def p_error( t ) : #NEWLINE# #INDENT# msg = 'invalid syntax' #NEWLINE# lexer = t . lexer #NEWLINE# if isinstance ( lexer , EnamlLexer ) : #NEWLINE# #INDENT# lexer = lexer . lexer #NEWLINE# #UNINDENT# syntax_error ( msg , FakeToken ( msg , t . lineno ) )