1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-08-08 14:22:09 +03:00

MCOL-1386 Add c-style comments support for DDL statements.

This commit is contained in:
Roman Nozdrin
2018-05-10 22:04:33 +03:00
committed by Roman Nozdrin
parent d8d386b960
commit f67c9fd50f

View File

@@ -49,6 +49,7 @@ static char* scanner_copy(char *str, yyscan_t yyscanner, copy_action_t action =
%x check2
%x inquote
%x endquote
%x c_comment
space [ \t\n\r\f]
horiz_space [ \t\f]
@@ -81,6 +82,7 @@ realfail1 ({integer}|{decimal})[Ee]
realfail2 ({integer}|{decimal})[Ee][-+]
%%
@@ -196,6 +198,10 @@ LONGTEXT {return LONGTEXT;}
/* ignore */
}
"/*" { BEGIN(c_comment); }
<c_comment>"*/" { BEGIN(0); }
<c_comment>\n { }
<c_comment>. { }
%%
void ddlerror(struct pass_to_bison* x, char const *s)