aboutsummaryrefslogtreecommitdiffstats
path: root/pbx/ael/ael.flex
diff options
context:
space:
mode:
authorrizzo <rizzo@f38db490-d61c-443f-a65b-d21fe96a405b>2006-04-28 14:17:03 +0000
committerrizzo <rizzo@f38db490-d61c-443f-a65b-d21fe96a405b>2006-04-28 14:17:03 +0000
commit5a2411d0df529ab64f60fd4b3d61515910ad9ebe (patch)
tree51e1d1d40a35cd7292c6efb15f2c4338143c2047 /pbx/ael/ael.flex
parent06c0629cdca299a99007e70ad3bc0ffcd1942da8 (diff)
- fix miscalculation in column numbers when multiple tabs
or empty lines are involved; - change linku1() to return the head of the list (unused at the moment); - ignore the source line number in runtests as they change with the source and cause mismatches in the comparison with the reference output. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@23130 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'pbx/ael/ael.flex')
-rw-r--r--pbx/ael/ael.flex4
1 files changed, 2 insertions, 2 deletions
diff --git a/pbx/ael/ael.flex b/pbx/ael/ael.flex
index 280960c14..0a063b8b7 100644
--- a/pbx/ael/ael.flex
+++ b/pbx/ael/ael.flex
@@ -213,9 +213,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; }
+\n { my_lineno++; my_col = 1; }
[ ]+ { my_col += yyleng; }
-[\t]+ { my_col += 8-(my_col%8); }
+[\t]+ { my_col += (yyleng*8)-(my_col%8); }
[-a-zA-Z0-9'"_/.\<\>\*\+!$#\[\]][-a-zA-Z0-9'"_/.!\*\+\<\>\{\}$#\[\]]* {
STORE_POS;