mirror of
https://github.com/postgres/postgres.git
synced 2025-07-28 23:42:10 +03:00
Since we're depending on %option noyywrap in the main scanner now,
we may as well use it in all our flex files. Make all the flex files have a consistent set of options.
This commit is contained in:
@ -10,8 +10,6 @@
|
||||
#include "cubeparse.h"
|
||||
#include "buffer.h"
|
||||
|
||||
#define YY_NO_UNPUT 1
|
||||
#undef yywrap
|
||||
|
||||
/* flex screws a couple symbols when used with the -P otion; fix those */
|
||||
#define YY_DECL int cube_yylex YY_PROTO(( void )); \
|
||||
@ -28,6 +26,12 @@ int cube_yylex YY_PROTO(( void ))
|
||||
void cube_flush_scanner_buffer(void);
|
||||
%}
|
||||
|
||||
%option 8bit
|
||||
%option never-interactive
|
||||
%option nounput
|
||||
%option noyywrap
|
||||
|
||||
|
||||
n [0-9]+
|
||||
integer [+-]?{n}
|
||||
real [+-]?({n}\.{n}?)|(\.{n})
|
||||
|
Reference in New Issue
Block a user