DATA LIST FREE: Warn when a quoted string is not followed by a delimiter.
authorBen Pfaff <blp@cs.stanford.edu>
Sat, 24 Nov 2012 21:47:06 +0000 (13:47 -0800)
committerBen Pfaff <blp@cs.stanford.edu>
Sat, 24 Nov 2012 21:47:06 +0000 (13:47 -0800)
commit897c1977501bad5b68f7cc6248a8b950fe15048a
tree650023b54c02a47b08ea8e0cf602f3f334249ad3
parent7b51bc9abbb6ed4a34cf396883d1dc8479b1e554
DATA LIST FREE: Warn when a quoted string is not followed by a delimiter.

A field parsed by DATA LIST FREE (or LIST) is either quoted or unquoted.
When it is quoted, this means that the entire field has to be quoted, that
is, it is not possible to quote some initial part of the field, then leave
some part of it unquoted (then possibly quote an additional part, etc.).
That means that the quoted portion should be followed by a delimiter,
such as white space, a comma, or end of line, but PSPP didn't warn when
it was not.  This commit makes PSPP warn in this situation, which makes
errors in the input easier to find.

Bug #26522.
Reported by Pascal Barbedor <pbarbedor@gmail.com>.
src/language/data-io/data-parser.c
tests/language/data-io/data-list.at