From: Kamaraju Kusumanchi <kk288@co...>  20040621 22:45:09

Hi all I am a new user of ctags and am very much impressed by it. I am wondering if it would be possible for the maintainers to add support for Fortran 90 language also. Currently ctags supports only Fortran77 programs and the support for fortran 90 programs is not that good. The basic issue I have is If there are variables declared inside a subroutine/function of a module, then these are variables are not at all recognized by ctags. As an example consider the following sample program ======================================================================= module triangle_operations implicit none !'contains' specifies that the rest of the module consists of procedure !definitions contains function area(x,y,z) real :: area !declaring the type of function real, intent( in ) :: x, y, z real :: theta, height theta = acos((x*x + y*y  z*z)/(2.0*x*y)) height = x * sin(theta) area = 0.5 * height * y end function area end module triangle_operations program triangle use triangle_operations implicit none real :: a, b, c ! variables !real :: area ! function !real :: a, b, c, area write(*,*) 'Enter the lengths of the 3 sides' read (*,*) a, b, c write(*,*) 'The area of the triangle formed by ', a, b, c, 'is = ', & &area(a, b, c) end program triangle ======================================================================= if I do ctags triangle.f90 the resulting file is ======================================================================== !_TAG_FILE_FORMAT 2 /extended format; format=1 will not append ;" to lines/ !_TAG_FILE_SORTED 1 /0=unsorted, 1=sorted, 2=foldcase/ !_TAG_PROGRAM_AUTHOR Darren Hiebert /dhiebert@.../ !_TAG_PROGRAM_NAME Exuberant Ctags // !_TAG_PROGRAM_URL http://ctags.sourceforge.net /official site/ !_TAG_PROGRAM_VERSION 5.5.4 // a triangle.f90 /^ real/;" v program:triangle area triangle.f90 /^ function area(/;" f module:triangle_operations b triangle.f90 /^ real :: a, b,/;" v program:triangle c triangle.f90 /^ real :: a, b, c /;" v program:triangle triangle triangle.f90 /^program triangle$/;" p triangle_operations triangle.f90 /^module triangle_operations$/;" m ======================================================================== As you can see there are no entries describing the variables x,y,z of the "area" function. thanks for your support raju  Home page: http://www.people.cornell.edu/pages/kk288/index.html Fluid's group: http://groups.yahoo.com/group/flumech/ 