Skip to content

Commit

Permalink
core: preprocessor subst rules are applied to pv names
Browse files Browse the repository at this point in the history
- all name is matched and substituted before pv is looked up
- reported in FS#139
  • Loading branch information
miconda committed Jan 5, 2015
1 parent dc9928e commit 39ffe58
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cfg.lex
Expand Up @@ -1045,6 +1045,7 @@ IMPORTFILE "import_file"
if (p_nest==0){
count();
addstr(&s_buf, yytext, yyleng);
r = pp_subst_run(&s_buf.s);
yylval.strval=s_buf.s;
memset(&s_buf, 0, sizeof(s_buf));
state=INITIAL_S;
Expand All @@ -1062,6 +1063,7 @@ IMPORTFILE "import_file"
<PVARID>{CR}|{EAT_ABLE}|. { yyless(yyleng-1);
count();
addstr(&s_buf, yytext, yyleng);
r = pp_subst_run(&s_buf.s);
yylval.strval=s_buf.s;
memset(&s_buf, 0, sizeof(s_buf));
state=INITIAL_S;
Expand Down

0 comments on commit 39ffe58

Please sign in to comment.