From: Luigi Rizzo Date: Wed, 26 Apr 2006 23:36:05 +0000 (+0000) Subject: use \t to indicate a tab, and fix indentation for X-Git-Tag: 1.4.0-beta1~1785 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a85701655107bef4357050653465d5b285913944;p=thirdparty%2Fasterisk.git use \t to indicate a tab, and fix indentation for the whitespace-handling rules git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@22680 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/pbx/ael/ael.flex b/pbx/ael/ael.flex index 6748135fdd..fb86903a3b 100644 --- a/pbx/ael/ael.flex +++ b/pbx/ael/ael.flex @@ -115,9 +115,9 @@ switches { STORE_POS; return KW_SWITCHES;} eswitches { STORE_POS; return KW_ESWITCHES;} includes { STORE_POS; return KW_INCLUDES;} -\n {my_lineno++;my_col=0;} -[ ]+ {/* nothing */ my_col+=yyleng;} -[ ]+ {/* nothing */ int wid = 8-(my_col%8); my_col+=wid;} +\n { my_lineno++; my_col = 0; } +[ ]+ { my_col += yyleng; } +[\t]+ { my_col += 8-(my_col%8); } [-a-zA-Z0-9'"_/.\<\>\*\+!$#\[\]][-a-zA-Z0-9'"_/.!\*\+\<\>\{\}$#\[\]]* { STORE_POS; diff --git a/pbx/ael/ael_lex.c b/pbx/ael/ael_lex.c index aa53ebf96f..d4103ec22f 100644 --- a/pbx/ael/ael_lex.c +++ b/pbx/ael/ael_lex.c @@ -1229,17 +1229,17 @@ case 40: /* rule 40 can match eol */ YY_RULE_SETUP #line 118 "ael.flex" -{my_lineno++;my_col=0;} +{ my_lineno++; my_col = 0; } YY_BREAK case 41: YY_RULE_SETUP #line 119 "ael.flex" -{/* nothing */ my_col+=yyleng;} +{ my_col += yyleng; } YY_BREAK case 42: YY_RULE_SETUP #line 120 "ael.flex" -{/* nothing */ int wid = 8-(my_col%8); my_col+=wid;} +{ my_col += 8-(my_col%8); } YY_BREAK case 43: YY_RULE_SETUP