#103 Wrong syntax highlight for python source

closed
nobody
5
2006-05-26
2005-03-29
Jan Ondrej
No

Syntax highlight for python source blinks.

There is an example source attached. Follow these steps
to reproduce this bug:

open sagator.py
hold down arrow while line number<=75 (NOT MORE!)
Press "down" again and whole screen is redrawed in
green (like a comment).

May be there are problems to determine multiline
comments in python.
Mulitiline comments are in ''' or """.

Syntax is still showed fine in beginning of file but
when I am scrolling
up and down over text, it is sometimes badly showed. :(

I have similiar problems with many of python sources.
This one is only an example.

Discussion

  • Jan Ondrej
    Jan Ondrej
    2005-03-29

    An python source example

     
    Attachments
  • Joe Allen
    Joe Allen
    2005-03-29

    Logged In: YES
    user_id=1000448

    The problem is that it started highlight in the middle of
    the block comment.

    In your python.jsf, add a single line like this "-" (a dash
    at the beginning of the line- see c.jsf for documentation).
    This makes JOE highlight from the beginning of the file, so
    it never gets confused by block comments.

     
  • Jan Ondrej
    Jan Ondrej
    2005-03-29

    Logged In: YES
    user_id=799485

    OK, works fine. Can anybody add this into joe sources?
    May be it is useful also for other users.
    Thank you for help.

     
  • Joe Allen
    Joe Allen
    2006-05-26

    • status: open --> closed
     
  • Joe Allen
    Joe Allen
    2006-05-26

    Logged In: YES
    user_id=1000448

    This is now fixed in CVS. JOE no longer uses the - option-
    it always highlights from the beginning of the file.