Skip to content
Snippets Groups Projects
Commit ab92fc1f authored by Steve Murphy's avatar Steve Murphy
Browse files

made AEL 8-bit transparent; mainly the lexer was tossing chars with the...

made AEL 8-bit transparent; mainly the lexer was tossing chars with the hi-order bit set. Not nice. Also, allow @ in extension names, and a backslash, also.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@89682 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent 98fbe822
Branches
Tags
No related merge requests found
This diff is collapsed.
......@@ -278,6 +278,14 @@ extension : word EXTENMARK statement {
$$ = npval2(PV_EXTENSION, &@1, &@3);
$$->u1.str = $1;
$$->u2.statements = $3; set_dads($$,$3);}
| word AT word EXTENMARK statement {
$$ = npval2(PV_EXTENSION, &@1, &@3);
$$->u1.str = malloc(strlen($1)+strlen($3)+2);
strcpy($$->u1.str,$1);
strcat($$->u1.str,"@");
strcat($$->u1.str,$3);
free($1);
$$->u2.statements = $5; set_dads($$,$5);}
| KW_REGEXTEN word EXTENMARK statement {
$$ = npval2(PV_EXTENSION, &@1, &@4);
$$->u1.str = $2;
......@@ -294,7 +302,6 @@ extension : word EXTENMARK statement {
$$->u2.statements = $8; set_dads($$,$8);
$$->u4.regexten=1;
$$->u3.hints = $4;}
;
/* list of statements in a block or after a case label - can be empty */
......
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment