SublimeFortran icon indicating copy to clipboard operation
SublimeFortran copied to clipboard

open mp, allocate, character(name)

Open sujona opened this issue 9 years ago • 3 comments

Hi, and thank you for a great tool! I hope this is the right place to report on bugs in the highlighting. I get erroneous behavior in these 3 occasions:

  1. This openMP expression is treated as a comment:
!$ call omp_set_num_threads(16) 
! But the following is recognized:
!$omp parallel do 
  1. This declaration (where 'char' is set in a module) is treated as regular foreground text:
character(char) ::     string1     
! However the following is recognized:
character(100) ::      string2
  1. The following allocation statement also looks like regular foreground text:
allocate ( &
   array1(N), &
   array2(N), &
   array3(N), &
   )    
! While this is correctly highlighted:
allocate ( array5(N) )

sujona avatar Sep 04 '16 19:09 sujona

Although the title is not about this, but since the message is about problems in syntax highlighting, I'd like to include another issue on the list: when I have more than one "end do" on the same line, i.e.: end do ; end do It's marked incorrectly. screenshot 2016-09-23 09 56 29

filipesmg avatar Sep 23 '16 08:09 filipesmg

I also noticed that sometimes the "use module" is marked, as in the figure below. I don't understand why. screenshot 2016-09-24 00 11 26

filipesmg avatar Sep 23 '16 22:09 filipesmg

just adding to the syntax highlighting stuff (thanks for the wonderful syntax tool!) Erroneous behavior: image

goes away if I disable the private: image

ryandvmartin avatar Mar 15 '17 15:03 ryandvmartin