Files
bison/tests
Akim Demaille d120a07e6b diagnostics: beware of unexpected EOF when quoting the source file
When the input file contains lone CRs (aka, ^M, \r), the locations see
a new line.  Diagnostics look only at \n as end-of-line, so sometimes
there is an offset in diagnostics.  Worse yet: sometimes we loop
endlessly waiting for \n to come from a continuous stream of EOF.

Fix that:
- check for EOF
- beware not to call end_use_class if begin_use_class was not
  called (which would abort).  This could happen if the actual
  line is shorter that the expected one.

Prompted by a (private) report from Marc Schönefeld.

* src/location.c (location_caret): here.
* tests/diagnostics.at (Carriage return): New.
2019-09-10 19:15:18 +02:00
..
2019-02-21 06:46:07 +01:00
2019-04-29 22:27:01 +02:00
2019-09-08 12:04:36 +02:00
2019-04-25 20:20:59 +02:00
2019-04-24 13:21:24 +02:00
2019-04-25 20:20:59 +02:00
2019-04-23 18:29:10 +02:00
2019-04-03 19:20:39 +02:00
2019-05-26 15:29:37 +02:00
2019-04-23 18:29:10 +02:00
2019-02-21 06:46:07 +01:00
2019-02-21 17:46:11 +01:00
2019-04-23 18:29:10 +02:00
2019-09-08 11:38:29 +02:00
2019-02-09 08:23:50 +01:00
2019-04-23 18:29:10 +02:00
2019-04-23 18:29:10 +02:00
2019-02-21 17:46:11 +01:00