File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed
src/main/jjtree/net/sf/jsqlparser/parser Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -238,6 +238,11 @@ TOKEN: /* SQL Keywords. prefixed with K_ to avoid name clashes */
238
238
| <K_TIME_KEY_EXPR : ( "CURRENT_TIMESTAMP" | "CURRENT_TIME" | "CURRENT_DATE" ) ( "()" )?>
239
239
}
240
240
241
+ TOKEN : /* Stuff */
242
+ {
243
+ <ST_SEMICOLON : ";" >
244
+ }
245
+
241
246
TOKEN : /* Operators */
242
247
{
243
248
<OP_GREATERTHANEQUALS: ">" (<WHITESPACE>)* "=">
@@ -280,7 +285,7 @@ Statement Statement() #Statement:
280
285
{ Statement stm; }
281
286
{
282
287
stm = SingleStatement()
283
- [";" ]
288
+ [<ST_SEMICOLON> ]
284
289
<EOF>
285
290
{
286
291
return stm;
@@ -333,10 +338,9 @@ Statements Statements() #Statements :
333
338
List<Statement> list = new ArrayList<Statement>();
334
339
Statement stm; }
335
340
{
336
- (";" )*
341
+ (<ST_SEMICOLON> )*
337
342
stm = SingleStatement() { list.add(stm); }
338
- ( (";") [ stm = SingleStatement() { list.add(stm); } ] )*
339
-
343
+ ( <ST_SEMICOLON> [ stm = SingleStatement() { list.add(stm); } ] )*
340
344
<EOF>
341
345
342
346
{
You can’t perform that action at this time.
0 commit comments