From cc40d6844ab56ac02b9875b4a7ef543fa46b7dc9 Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Mon, 30 May 2005 16:48:47 +0000 Subject: [PATCH] Use {xqoctesc} lex macro now that \ddd is standard. --- src/bin/psql/psqlscan.l | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bin/psql/psqlscan.l b/src/bin/psql/psqlscan.l index f0487e925f..357fd13943 100644 --- a/src/bin/psql/psqlscan.l +++ b/src/bin/psql/psqlscan.l @@ -849,7 +849,7 @@ other . "\\r" { appendPQExpBufferChar(output_buf, '\r'); } "\\f" { appendPQExpBufferChar(output_buf, '\f'); } -"\\"[0-7]{1,3} { +{xqoctesc} { /* octal case */ appendPQExpBufferChar(output_buf, (char) strtol(yytext + 1, NULL, 8)); -- 2.39.5