1. Georg Brandl
  2. pygments-main
  3. Issues
Issue #887 resolved

Fortran lexer, array definition syntax error

Myroslav Zapukhlyak
created an issue

Since fortran 2003 an array constructor may be bracketed with square brackets, [ ], instead of (/ /).. Currently it is highlighted as an error.

program test
integer :: m1(6)
integer :: m2(6)
m1 = [ 1, 0, 0, 0, 5, 0 ]
m2 = (/ 1, 0, 0, 0, 5, 0 /)
end program test

Comments (3)

  1. Log in to comment