diff options
author | Eli Bendersky <eliben@users.noreply.github.com> | 2016-08-17 05:12:02 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-08-17 05:12:02 -0700 |
commit | f8718097468025958a024b62942b032807d01bb9 (patch) | |
tree | 7350470bbec162f40edaa68b5eb2caae85f5c7aa | |
parent | 4f604f513a4649e2538749cb2c7064c0716b757a (diff) | |
parent | e5de31dfe33ab86060eeb5e785825920f8ade41c (diff) | |
download | pycparser-f8718097468025958a024b62942b032807d01bb9.tar.gz |
Merge pull request #141 from cod3monk/upstream
report filename if error is "At end of input"
-rw-r--r-- | pycparser/c_parser.py | 2 |
1 files changed, 1 insertions, 1 deletions
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) #------------------------------------------------------------------------------ |