Is a 'bugfix' version of jed's pymode.sl editor config file available anywhere?

  • Thread starter Kenneth McDonald
  • Start date
K

Kenneth McDonald

I just started using the jed editor, and am really happy with it--
like emacs, but much, much friendlier. However, my python mode
file (the one that came with the 0.99.16 precompiled version of
jed that I got) isn't handling string highlighting properly--
it doesn't understand that '''This 'string' isn't really a string'''
is a single triple quoted string, and instead treats the interior
' marks as string delimiters as well as (correctly) treating the
''' as single string delimiters. I took a quick look in pymode.sl
and it didn't look hard to fix, for someone familiar with slang's
DFA implmentation and its RE syntax--which I'm not :-( ). So
I thought I would try here first.

Thanks for any suggestions,
Ken
 
B

Brian van den Broek

Kenneth McDonald said unto the world upon 08/06/2004 20:48:
I just started using the jed editor, and am really happy with it--
like emacs, but much, much friendlier. However, my python mode
file (the one that came with the 0.99.16 precompiled version of
jed that I got) isn't handling string highlighting properly--
it doesn't understand that '''This 'string' isn't really a string'''
is a single triple quoted string, and instead treats the interior
' marks as string delimiters as well as (correctly) treating the
''' as single string delimiters. I took a quick look in pymode.sl
and it didn't look hard to fix, for someone familiar with slang's
DFA implmentation and its RE syntax--which I'm not :-( ). So
I thought I would try here first.

Thanks for any suggestions,
Ken

Hi Ken,

I'm pretty much a python newbie and I don't know jed. But I've noticed
that every editor with a Python mode that I have tried (other than IDLE
and possibly LEO) has this problem. One of the links on
<http://www.python.org/emacs/python-mode/> has a discussion of various
workarounds that you might find of use. It is, as the address implies,
focused on emacs and Python, but I have found the advice generally
applicable to the Python modes of other editors.

Hope that helps,

Brian vdB
 
F

Fernando Perez

Kenneth said:
I just started using the jed editor, and am really happy with it--
like emacs, but much, much friendlier. However, my python mode
file (the one that came with the 0.99.16 precompiled version of
jed that I got) isn't handling string highlighting properly--
it doesn't understand that '''This 'string' isn't really a string'''
is a single triple quoted string, and instead treats the interior
' marks as string delimiters as well as (correctly) treating the
''' as single string delimiters. I took a quick look in pymode.sl
and it didn't look hard to fix, for someone familiar with slang's
DFA implmentation and its RE syntax--which I'm not :-( ). So
I thought I would try here first.

Yes. I don't remember where I got it, but here it is:

http://amath.colorado.edu/faculty/fperez/tmp/pymode.sl

Cheers,

f
 
D

David Fisher

Kenneth McDonald said:
I just started using the jed editor, and am really happy with it--
like emacs, but much, much friendlier. However, my python mode
file (the one that came with the 0.99.16 precompiled version of
jed that I got) isn't handling string highlighting properly--
it doesn't understand that '''This 'string' isn't really a string'''
is a single triple quoted string, and instead treats the interior
' marks as string delimiters as well as (correctly) treating the
''' as single string delimiters. I took a quick look in pymode.sl
and it didn't look hard to fix, for someone familiar with slang's
DFA implmentation and its RE syntax--which I'm not :-( ). So
I thought I would try here first.

Thanks for any suggestions,
Ken
Just checked that string in emacs python-mode and it doesn't parse
right there either. If you get fix, maybe fix emacs too :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,007
Latest member
obedient dusk

Latest Threads

Top