aboutsummaryrefslogtreecommitdiffstats
path: root/pbx/ael/ael.y
diff options
context:
space:
mode:
Diffstat (limited to 'pbx/ael/ael.y')
-rw-r--r--pbx/ael/ael.y5
1 files changed, 2 insertions, 3 deletions
diff --git a/pbx/ael/ael.y b/pbx/ael/ael.y
index bf3e56061..a7bd7108a 100644
--- a/pbx/ael/ael.y
+++ b/pbx/ael/ael.y
@@ -579,11 +579,10 @@ eswitches : KW_ESWITCHES switchlist_block {
;
switchlist_block : LC switchlist RC { $$ = $2; }
- | LC RC { $$ = NULL; }
;
-switchlist : word SEMI { $$ = nword($1, &@1); }
- | switchlist word SEMI { $$ = linku1($1, nword($2, &@2)); }
+switchlist : /* empty */ { $$ = NULL; }
+ | word SEMI switchlist { $$ = linku1(nword($1, &@1), $3); }
| switchlist error {$$=$1;}
;