Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [photran] Problems with syntax highlighting with Photran

This is in reply to the post of Joel Marin, on Jan 11, 07. Sorry for
changing the message ID, but I subscribed to the list only after reading
the post.

The point in Joel's post was that the Fortran lexer chokes on
preprocessor #endif's, e.g.

... some code...

#ifdef foo
  code2
#endif

... code3 ...

The outline view shows the error message "Lexer error (file.f90, line n,
col m): unexpected character #", and syntax highlighting stops after the
#endif. I am seeing this in Photran 3.1 installed on top of a fresh
install of eclipse 3.2.

This bug seems to be in photran's bugtraq for quite some time now:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=118967, but from what I
read in the list archives, development resources are scarce.

Can somebody point us in the right direction? Where would I have to look
if I wanted to fix the bug? Is it possible to make the lexer simply
ignore cpp-tags? 


My knowledge about eclipse is very limited, but I am willing to learn. I
discovered photran some weeks ago and absolutely love it, but this bug
makes it unusable for 95 percent of the code I have to work at.

cheers,
Stefan



Back to the top