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

Hi,

I see that I'm not the only one to have this problem.

Can someone tell us if it's possible to make the lexer simply ignore cpp-tags as Stefan Janecek proposed ?

I use Photran for my development, but I'm affraid it will become unusable because I need to use cpp-keys.
I think just ignoring cpp tags could solve my problem.

Another solution that could work for my code is to interpret character # as a comment ...

Bests,

Joel MARIN.

Stefan Janecek a écrit :

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

_______________________________________________
photran mailing list
photran@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/photran



Back to the top