From e5de31dfe33ab86060eeb5e785825920f8ade41c Mon Sep 17 00:00:00 2001 From: Julian Hammer Date: Tue, 16 Aug 2016 16:34:24 +0200 Subject: report filename if error is "at end of input" --- pycparser/c_parser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pycparser') diff --git a/pycparser/c_parser.py b/pycparser/c_parser.py index d02e577..53f445a 100644 --- a/pycparser/c_parser.py +++ b/pycparser/c_parser.py @@ -1703,7 +1703,7 @@ class CParser(PLYParser): self._coord(lineno=p.lineno, column=self.clex.find_tok_column(p))) else: - self._parse_error('At end of input', '') + self._parse_error('At end of input', self.clex.filename) #------------------------------------------------------------------------------ -- cgit v1.2.3