mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 15:45:18 +00:00
- 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: https://origsvn.digium.com/svn/asterisk/trunk@23130 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user