[svn-commits] trunk r22680 - in /trunk/pbx/ael: ael.flex ael_lex.c

svn-commits at lists.digium.com svn-commits at lists.digium.com
Wed Apr 26 16:36:06 MST 2006


Author: rizzo
Date: Wed Apr 26 18:36:05 2006
New Revision: 22680

URL: http://svn.digium.com/view/asterisk?rev=22680&view=rev
Log:
use \t to indicate a tab, and fix indentation for
the whitespace-handling rules


Modified:
    trunk/pbx/ael/ael.flex
    trunk/pbx/ael/ael_lex.c

Modified: trunk/pbx/ael/ael.flex
URL: http://svn.digium.com/view/asterisk/trunk/pbx/ael/ael.flex?rev=22680&r1=22679&r2=22680&view=diff
==============================================================================
--- trunk/pbx/ael/ael.flex (original)
+++ trunk/pbx/ael/ael.flex Wed Apr 26 18:36:05 2006
@@ -115,9 +115,9 @@
 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;

Modified: trunk/pbx/ael/ael_lex.c
URL: http://svn.digium.com/view/asterisk/trunk/pbx/ael/ael_lex.c?rev=22680&r1=22679&r2=22680&view=diff
==============================================================================
--- trunk/pbx/ael/ael_lex.c (original)
+++ trunk/pbx/ael/ael_lex.c Wed Apr 26 18:36:05 2006
@@ -1229,17 +1229,17 @@
 /* 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



More information about the svn-commits mailing list