Browse code

core: end simple pv name (e.g., $xy) at end of line

- cfg parser was throwing error if last token in a line was $xy as pv
with \n was not found

Daniel-Constantin Mierla authored on 25/01/2013 10:38:38
Showing 1 changed files
... ...
@@ -1100,7 +1100,7 @@ IMPORTFILE      "import_file"
1100 1100
 <PVARID>{ID}|'\.'			{yymore(); }
1101 1101
 <PVARID>{LPAREN}			{	state = PVAR_P_S; BEGIN(PVAR_P);
1102 1102
 								p_nest=1; yymore(); }
1103
-<PVARID>.					{	yyless(yyleng-1);
1103
+<PVARID>{CR}|{EAT_ABLE}|.	{	yyless(yyleng-1);
1104 1104
 								count();
1105 1105
 								addstr(&s_buf, yytext, yyleng);
1106 1106
 								yylval.strval=s_buf.s;