More spacing cleanups.
This commit is contained in:
parent
d63901c9d0
commit
46dfa5ec83
@ -12,7 +12,7 @@
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* IDENTIFICATION
|
* IDENTIFICATION
|
||||||
* $PostgreSQL: pgsql/src/interfaces/ecpg/preproc/pgc.l,v 1.139 2006/02/01 20:57:39 momjian Exp $
|
* $PostgreSQL: pgsql/src/interfaces/ecpg/preproc/pgc.l,v 1.140 2006/02/02 03:51:41 momjian Exp $
|
||||||
*
|
*
|
||||||
*-------------------------------------------------------------------------
|
*-------------------------------------------------------------------------
|
||||||
*/
|
*/
|
||||||
@ -278,18 +278,18 @@ informix_special [\$]
|
|||||||
other .
|
other .
|
||||||
|
|
||||||
/* some stuff needed for ecpg */
|
/* some stuff needed for ecpg */
|
||||||
exec [eE][xX][eE][cC]
|
exec [eE][xX][eE][cC]
|
||||||
sql [sS][qQ][lL]
|
sql [sS][qQ][lL]
|
||||||
define [dD][eE][fF][iI][nN][eE]
|
define [dD][eE][fF][iI][nN][eE]
|
||||||
include [iI][nN][cC][lL][uU][dD][eE]
|
include [iI][nN][cC][lL][uU][dD][eE]
|
||||||
|
|
||||||
ifdef [iI][fF][dD][eE][fF]
|
ifdef [iI][fF][dD][eE][fF]
|
||||||
ifndef [iI][fF][nN][dD][eE][fF]
|
ifndef [iI][fF][nN][dD][eE][fF]
|
||||||
else [eE][lL][sS][eE]
|
else [eE][lL][sS][eE]
|
||||||
elif [eE][lL][iI][fF]
|
elif [eE][lL][iI][fF]
|
||||||
endif [eE][nN][dD][iI][fF]
|
endif [eE][nN][dD][iI][fF]
|
||||||
|
|
||||||
struct [sS][tT][rR][uU][cC][tT]
|
struct [sS][tT][rR][uU][cC][tT]
|
||||||
|
|
||||||
exec_sql {exec}{space}*{sql}{space}*
|
exec_sql {exec}{space}*{sql}{space}*
|
||||||
ipdigit ({digit}|{digit}{digit}|{digit}{digit}{digit})
|
ipdigit ({digit}|{digit}{digit}|{digit}{digit}{digit})
|
||||||
@ -323,32 +323,32 @@ cppline {space}*#(.*\\{space})*.*{newline}
|
|||||||
|
|
||||||
<SQL>{whitespace} { /* ignore */ }
|
<SQL>{whitespace} { /* ignore */ }
|
||||||
|
|
||||||
{xcstart} {
|
{xcstart} {
|
||||||
token_start = yytext;
|
token_start = yytext;
|
||||||
state_before = YYSTATE;
|
state_before = YYSTATE;
|
||||||
xcdepth = 0;
|
xcdepth = 0;
|
||||||
BEGIN(xc);
|
BEGIN(xc);
|
||||||
/* Put back any characters past slash-star; see above */
|
/* Put back any characters past slash-star; see above */
|
||||||
yyless(2);
|
yyless(2);
|
||||||
fputs("/*", yyout);
|
fputs("/*", yyout);
|
||||||
}
|
}
|
||||||
<xc>{xcstart} {
|
<xc>{xcstart} {
|
||||||
xcdepth++;
|
xcdepth++;
|
||||||
/* Put back any characters past slash-star; see above */
|
/* Put back any characters past slash-star; see above */
|
||||||
yyless(2);
|
yyless(2);
|
||||||
fputs("/*", yyout);
|
fputs("/*", yyout);
|
||||||
}
|
}
|
||||||
|
|
||||||
<xc>{xcstop} {
|
<xc>{xcstop} {
|
||||||
ECHO;
|
ECHO;
|
||||||
if (xcdepth <= 0)
|
if (xcdepth <= 0)
|
||||||
{
|
{
|
||||||
BEGIN(state_before);
|
BEGIN(state_before);
|
||||||
token_start = NULL;
|
token_start = NULL;
|
||||||
}
|
|
||||||
else
|
|
||||||
xcdepth--;
|
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
xcdepth--;
|
||||||
|
}
|
||||||
|
|
||||||
<xc>{xcinside} { ECHO; }
|
<xc>{xcinside} { ECHO; }
|
||||||
<xc>{op_chars} { ECHO; }
|
<xc>{op_chars} { ECHO; }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user