summaryrefslogtreecommitdiff
path: root/contrib/cube
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2004-02-24 22:06:32 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2004-02-24 22:06:32 +0000
commitfa96a5e15b69707c2e05aa04bc73fa88b9a85f7a (patch)
treef96b6765fbef3523cd5e323153b298be26a66add /contrib/cube
parent58e705320e0c9e691a3fd2bd544f375ee0ca23d6 (diff)
downloadpostgresql-fa96a5e15b69707c2e05aa04bc73fa88b9a85f7a.tar.gz
Add %option nodefault to all our flex lexers. Fix a couple of rule gaps
exposed thereby. AFAICT these would not lead to any worse problems than junk emitted on the backend's stdout, but we should have the option to catch possible worse errors in future.
Diffstat (limited to 'contrib/cube')
-rw-r--r--contrib/cube/cubescan.l3
1 files changed, 2 insertions, 1 deletions
diff --git a/contrib/cube/cubescan.l b/contrib/cube/cubescan.l
index c5e1a20f6b..a47dc4334a 100644
--- a/contrib/cube/cubescan.l
+++ b/contrib/cube/cubescan.l
@@ -26,6 +26,7 @@ void cube_scanner_finish(void);
%option 8bit
%option never-interactive
+%option nodefault
%option nounput
%option noyywrap
%option prefix="cube_yy"
@@ -44,7 +45,7 @@ float ({integer}|{real})([eE]{integer})?
\( yylval = "("; return O_PAREN;
\) yylval = ")"; return C_PAREN;
\, yylval = ")"; return COMMA;
-[ ]+ /* discard spaces */
+[ \t\n\r\f]+ /* discard spaces */
. return yytext[0]; /* alert parser of the garbage */
%%