Support F2003 array syntax and F2008 coarrays
commit1c0fa99e1d84b0331d65e56dcab4002f0006ccb1
authorAdam Hirst <adam@aphirst.karoo.co.uk>
Sat, 15 Feb 2014 14:29:22 +0000 (15 14:29 +0000)
committerColomban Wendling <ban@herbesfolles.org>
Sat, 15 Feb 2014 14:48:31 +0000 (15 15:48 +0100)
treedafb086044aaded623a99a089cc5219029aa66ce
parent20f12872e28d9ff10db2fb477905edcdededb360
Support F2003 array syntax and F2008 coarrays

Fortran 2003 allows '[' and ']' as array constructors in addition to
the legacy '(/' and '/)'. Fortran 2008 allows '[]' as part of a
CODIMENSION specifier, which can either be `codimension[]` in
the type-spec; or as either `variable[]` or `variable()[]` in
the entry-spec.

Credit to Colomban Wendling for the skipOverSquares logic, and
treating `codimension` as a special-case.

Last part of bug #1023.
tagmanager/ctags/fortran.c
tests/ctags/Makefile.am
tests/ctags/square_parens.f90 [new file with mode: 0644]
tests/ctags/square_parens.f90.tags [new file with mode: 0644]