Use {xqoctesc} lex macro now that \ddd is standard.
authorBruce Momjian <[email protected]>
Mon, 30 May 2005 16:48:47 +0000 (16:48 +0000)
committerBruce Momjian <[email protected]>
Mon, 30 May 2005 16:48:47 +0000 (16:48 +0000)
src/bin/psql/psqlscan.l

index f0487e925f73876a93a4ef88f146eebc6a27c246..357fd139434077633575b8279c4cb5bb8ba040e0 100644 (file)
@@ -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));