mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-22 20:54:49 +09:00
1 parent
8a39633987
commit
9182eee770
1 file changed
+6
-7
@@ -46,6 +46,12 @@
|
||||
%x VALUE
|
||||
%%
|
||||
|
||||
/* ------------------------------------------------------------------------- */
|
||||
/* Just copy the string verbatim till we find a variable (starts with $) */
|
||||
/* ------------------------------------------------------------------------- */
|
||||
|
||||
([^\$\\]|"\\\$"|\\[^\$])+ { yylval_param->val_str = mem_collector_strdup(mc,yytext); return RSTRING;}
|
||||
|
||||
/* ------------------------------------------------------------------------- */
|
||||
/* Parse variables in the form: */
|
||||
/* $VARIABLE */
|
||||
@@ -86,13 +92,6 @@
|
||||
<VAR><<EOF>> { yylval_param->val_char = '\0';
|
||||
BEGIN(INITIAL);
|
||||
return EOA;}
|
||||
|
||||
/* ------------------------------------------------------------------------- */
|
||||
/* Just copy the string verbatim till we find a variable (starts with $) */
|
||||
/* ------------------------------------------------------------------------- */
|
||||
|
||||
[^\$]+ { yylval_param->val_str = mem_collector_strdup(mc,yytext); return RSTRING;}
|
||||
|
||||
%%
|
||||
|
||||
int vm_var_wrap(yyscan_t scanner)
|
||||
|
||||
Reference in new issue
Block a user