[SR-Dev] git:andrei/script_vars: script: fix pvar parsing

Andrei Pelinescu-Onciul andrei at iptel.org
Tue Dec 16 12:07:47 CET 2008


Module: sip-router
Branch: andrei/script_vars
Commit: 1c67272d35800a32ef3877ce87799c318dca8d52
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=1c67272d35800a32ef3877ce87799c318dca8d52

Author: Andrei Pelinescu-Onciul <andrei at iptel.org>
Committer: Andrei Pelinescu-Onciul <andrei at iptel.org>
Date:   Tue Dec 16 12:03:44 2008 +0100

script: fix pvar parsing

- fix parsing for pvars with multiple '('

---

 cfg.lex |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/cfg.lex b/cfg.lex
index 6e9d991..fc9eecb 100644
--- a/cfg.lex
+++ b/cfg.lex
@@ -806,6 +806,7 @@ EAT_ABLE	[\ \t\b\r]
 								}
 								yymore();
 							}
+<PVAR_P>{LPAREN}			{ p_nest++; yymore(); }
 <PVAR_P>.					{ yymore(); }
 
 <PVARID>{ID}|'.'			{yymore(); }




More information about the sr-dev mailing list