summaryrefslogtreecommitdiff
path: root/pbx/ael/ael.y
diff options
context:
space:
mode:
authorLuigi Rizzo <rizzo@icir.org>2006-05-03 16:58:16 +0000
committerLuigi Rizzo <rizzo@icir.org>2006-05-03 16:58:16 +0000
commit5f612f9ae6ed0ea03f40b8c57f5799696bd9748a (patch)
tree5f04d4e7ba80e7f972c971e50a6ef04bdc594c0b /pbx/ael/ael.y
parente5b0c721e51da4e62145a5d9f15eb60237b5cefd (diff)
consistent rule for goto...
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@24431 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'pbx/ael/ael.y')
-rw-r--r--pbx/ael/ael.y3
1 files changed, 2 insertions, 1 deletions
diff --git a/pbx/ael/ael.y b/pbx/ael/ael.y
index 11a8afb27..75cffb053 100644
--- a/pbx/ael/ael.y
+++ b/pbx/ael/ael.y
@@ -225,6 +225,7 @@ assignment : word EQ { reset_semicount(parseio->scanner); } word SEMI {
$$->u2.val = $4; }
;
+/* XXX this matches missing arguments, is this desired ? */
arglist : /* empty */ { $$ = NULL; }
| word { $$ = nword($1, &@1); }
| arglist COMMA word { $$ = linku1($1, nword($3, &@3)); }
@@ -475,7 +476,7 @@ target : goto_word { $$ = nword($1, &@1); }
jumptarget : goto_word { /* ext, 1 */
$$ = nword($1, &@1);
$$->next = nword(strdup("1"), &@1); } /* jump extension[,priority][@context] */
- | goto_word COMMA goto_word { /* ext, pri */
+ | goto_word COMMA word { /* ext, pri */
$$ = nword($1, &@1);
$$->next = nword($3, &@3); }
| goto_word COMMA word AT context_name { /* context, ext, pri */