]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
use \t to indicate a tab, and fix indentation for
authorLuigi Rizzo <rizzo@icir.org>
Wed, 26 Apr 2006 23:36:05 +0000 (23:36 +0000)
committerLuigi Rizzo <rizzo@icir.org>
Wed, 26 Apr 2006 23:36:05 +0000 (23:36 +0000)
the whitespace-handling rules

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@22680 65c4cc65-6c06-0410-ace0-fbb531ad65f3

pbx/ael/ael.flex
pbx/ael/ael_lex.c

index 6748135fddfbfe35c6563d1e3ff687e33e5e09cd..fb86903a3b9b3e3db340bcb45f0dbf080d4e552c 100644 (file)
@@ -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;
index aa53ebf96f81e2966ce12f6098a12cef68464a6f..d4103ec22f9e82db7fe8b18f2eb87e917d951603 100644 (file)
@@ -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