12
12
*
13
13
*
14
14
* IDENTIFICATION
15
- * $Header: /cvsroot/pgsql/src/interfaces/ecpg/preproc/pgc.l,v 1.116 2003/06/17 07:28:22 meskes Exp $
15
+ * $Header: /cvsroot/pgsql/src/interfaces/ecpg/preproc/pgc.l,v 1.117 2003/06/20 15:16:06 meskes Exp $
16
16
*
17
17
*-------------------------------------------------------------------------
18
18
*/
@@ -179,12 +179,12 @@ xcstop \*+\/
179
179
xcinside [^ */ ]+
180
180
181
181
digit [0 -9 ]
182
- letter [ \200 - \377 _A - Za -z ]
183
- letter_or_digit [ \200 -\377 _A - Za - z0 - 9 ]
182
+ ident_start [ A - Za -z \200 - \377 _ ]
183
+ ident_cont [ A - Za - z \200 -\377 _0 - 9 \$ ]
184
184
185
- identifier {letter }{ letter_or_digit }*
185
+ identifier {ident_start }{ ident_cont }*
186
186
187
- array ({letter_or_digit }| [\+\-\*\%\/\(\) ])*
187
+ array ({ident_cont }| [\+\-\*\%\/\(\) ])*
188
188
typecast " ::"
189
189
190
190
/*
@@ -197,8 +197,8 @@ typecast "::"
197
197
* If you change either set, adjust the character lists appearing in the
198
198
* rule for "operator"!
199
199
*/
200
- self [,() \[\] .;$ \:\+\-\*\/\%\^\<\>\= ]
201
- op_chars [\~\!\@\#\^\&\|\`\?\$\ +\-\*\/\%\<\>\= ]
200
+ self [,() \[\] .; \:\+\-\*\/\%\^\<\>\= ]
201
+ op_chars [\~\!\@\#\^\&\|\`\?\+\-\*\/\%\<\>\= ]
202
202
operator {op_chars }+
203
203
204
204
/* we no longer allow unary minus in numbers.
@@ -474,7 +474,7 @@ cppline {space}*#(.*\\{space})+.*
474
474
475
475
for (ic = nchars-2 ; ic >= 0 ; ic--)
476
476
{
477
- if (strchr (" ~!@#^&|`?$ %" , yytext[ic]))
477
+ if (strchr (" ~!@#^&|`?%" , yytext[ic]))
478
478
break ;
479
479
}
480
480
if (ic >= 0 )
@@ -493,7 +493,7 @@ cppline {space}*#(.*\\{space})+.*
493
493
* that the "self" rule would have.
494
494
*/
495
495
if (nchars == 1 &&
496
- strchr (" ,()[].;$ :+-*/%^<>=" , yytext[0 ]))
496
+ strchr (" ,()[].;:+-*/%^<>=" , yytext[0 ]))
497
497
return yytext[0 ];
498
498
}
499
499
@@ -862,7 +862,7 @@ cppline {space}*#(.*\\{space})+.*
862
862
else
863
863
BEGIN (xskip);
864
864
}
865
- <C ,xskip >{informix_special }{endif }{space }* {
865
+ <C ,xskip >{informix_special }{endif }{space }* " ; " {
866
866
/* are we simulating Informix? */
867
867
if (compat == ECPG_COMPAT_INFORMIX)
868
868
{
0 commit comments