From: Hans-Bernhard B. <br...@us...> - 2010-03-04 21:07:26
|
Update of /cvsroot/cscope/cscope/src In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv25178/src Modified Files: fscanner.l scanner.l Log Message: Allow C++ :: scope operator insidie function argument lists Index: fscanner.l =================================================================== RCS file: /cvsroot/cscope/cscope/src/fscanner.l,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -r1.14 -r1.15 *** fscanner.l 28 Aug 2009 14:28:27 -0000 1.14 --- fscanner.l 4 Mar 2010 21:07:17 -0000 1.15 *************** *** 529,533 **** <WAS_IDENTIFIER>{ ! {ws}*\(({wsnl}|{identifier}|{number}|[*&[\]=,.])*\)([()]|{wsnl})*[:a-zA-Z_#{] { /* a function definition */ /* note: "#define a (b) {" and "#if defined(a)\n#" --- 529,533 ---- <WAS_IDENTIFIER>{ ! {ws}*\(({wsnl}|{identifier}|{number}|[*&[\]=,.:])*\)([()]|{wsnl})*[:a-zA-Z_#{] { /* a function definition */ /* note: "#define a (b) {" and "#if defined(a)\n#" Index: scanner.l =================================================================== RCS file: /cvsroot/cscope/cscope/src/scanner.l,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -r1.8 -r1.9 *** scanner.l 9 Mar 2007 23:54:34 -0000 1.8 --- scanner.l 4 Mar 2010 21:07:17 -0000 1.9 *************** *** 376,380 **** goto more; } ! {identifier}/{ws}*\(({wsnl}|a-zA-Z0-9_*&[\]=,.])*\)({wsnl}|[()])*[:a-zA-Z_#{] { /* warning: "if (...)" must not overflow yytext, so the content --- 376,380 ---- goto more; } ! {identifier}/{ws}*\(({wsnl}|a-zA-Z0-9_*&[\]=,.:])*\)({wsnl}|[()])*[:a-zA-Z_#{] { /* warning: "if (...)" must not overflow yytext, so the content |