Module: sip-router
Branch: master
Commit: d2d6b4b932c7df6e6620a256692be5ef049356a3
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=d2d6b4b…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Fri Jan 25 11:38:38 2013 +0100
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
---
cfg.lex | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/cfg.lex b/cfg.lex
index 7bc6e68..5a7ce8a 100644
--- a/cfg.lex
+++ b/cfg.lex
@@ -1100,7 +1100,7 @@ IMPORTFILE "import_file"
<PVARID>{ID}|'\.' {yymore(); }
<PVARID>{LPAREN} { state = PVAR_P_S; BEGIN(PVAR_P);
p_nest=1; yymore(); }
-<PVARID>. { yyless(yyleng-1);
+<PVARID>{CR}|{EAT_ABLE}|. { yyless(yyleng-1);
count();
addstr(&s_buf, yytext, yyleng);
yylval.strval=s_buf.s;