dparkins / language-fortran

Syntax highlighting for FORTRAN for atom
MIT License
35 stars 16 forks source link

variable named "select" falsly triggers a begining of a select block #115

Closed michaelkonecny closed 4 years ago

michaelkonecny commented 4 years ago

Consider this code

subroutine test

    integer :: i

    logical, dimension(:), allocatable :: select

    select = .true.

    if (all(select)) then
        i = 2
    endif
end subroutine

Highlighting becomes broken at select = .true. because the beginning of a select (case or type) block gets triggered.

select shouldn't trigger a block beginning. Only select case and select type should.