diff options
Diffstat (limited to 'grammar/rscript.l')
-rw-r--r-- | grammar/rscript.l | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/grammar/rscript.l b/grammar/rscript.l index ccc39a2f..750a3e81 100644 --- a/grammar/rscript.l +++ b/grammar/rscript.l @@ -105,8 +105,8 @@ static int preCommentState; <INOBJ>. { printf("INOBJ: invalid char '%s'\n", yytext); } /* CFSYSLINE is valid in all modes */ -\$[a-z]+.*$ { yylval.s = yytext; return CFSYSLINE; } -<INOBJ>\$[a-z]+.*$ { yylval.s = yytext; return CFSYSLINE; } +\$[a-z]+.*$ { yylval.s = strdup(yytext); return CFSYSLINE; } +<INOBJ>\$[a-z]+.*$ { yylval.s = strdup(yytext); return CFSYSLINE; } \#.*\n /* skip comments in input */ [\n\t ] /* drop whitespace */ |