diagnostics: don't try to quote special files

Based on a report by Todd Freed.
http://lists.gnu.org/archive/html/bug-bison/2019-04/msg00000.html
See also https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90034

* src/location.c (caret_info): Also track the file name.
(location_caret): Don't quote special files.
This commit is contained in:
Akim Demaille
2019-04-22 17:30:20 +02:00
parent 95d688957f
commit a992a3cb9e
3 changed files with 66 additions and 11 deletions

1
THANKS
View File

@@ -170,6 +170,7 @@ Tim Josling tej@melbpc.org.au
Tim Landscheidt tim@tim-landscheidt.de
Tim Van Holder tim.van.holder@pandora.be
Tobias Frost tobi@debian.org
Todd Freed todd.freed@gmail.com
Tom Lane tgl@sss.pgh.pa.us
Tom Tromey tromey@cygnus.com
Tommy Nordgren tommy.nordgren@chello.se