Improve lexer's error reporting. You get the whole token mentioned now
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 1 May 2002 17:12:08 +0000 (17:12 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 1 May 2002 17:12:08 +0000 (17:12 +0000)
commit1e103cfa70104e592014a27d91e07fb87834b1b0
treec8edcd7d096fbef3370061362200e9bb74d6fa63
parent1e893ab260d0998c56ff47c193fd008bc961635d
Improve lexer's error reporting.  You get the whole token mentioned now
in parse error messages, not just the part scanned by the last flex rule.
For example,
select "foo" "bar";
used to draw
ERROR:  parser: parse error at or near """
which was rather unhelpful.  Now it gives
ERROR:  parser: parse error at or near ""bar""
Also, error messages concerning bitstring literals and suchlike will
quote the source text at you, not the processed internal form of the literal.
src/backend/parser/scan.l
src/backend/po/nls.mk
src/test/regress/expected/strings.out