- Subject: Re: pymode.sl patch
- From: Jörg Sommer <joerg@xxxxxxxxxxxx>
- Date: Sat, 12 Aug 2006 16:11:20 +0000 (UTC)
Jörg Sommer <joerg@xxxxxxxxxxxx> wrote:
> "Peter Bengtsson" <mail@xxxxxxxxxxx> wrote:
>> There's also an annoying bug in the python mode to do with py_endblock_cmd()
>> If you a line like this:
>> return "foo"
>>
>> In lib/pymode.sl at around line 87 you'll find::
>>
>> private define py_endblock_cmd()
>> {
>> bol_skip_white();
>> if (looking_at("return") or
>> looking_at("raise") or
>> looking_at("break") or
>> looking_at("pass") or
>> looking_at("continue"))
>
> Add a space, look for "return ".
This does not not work, if return is the only word in the line. Use this:
> push_mark();
> skipt_word_chars();
> return is_list_element("return,raise,break,pass,continue",
> bufsubstr(), ',');
Have a nice day, Jörg.
--
"...anytime you install something new on the Windows platform, you risk
spending the next five or six hours trying to figure out what happened"
-- Robert Roblin, Adobe
--------------------------
To unsubscribe send email to <jed-users-request@xxxxxxxxxxx> with
the word "unsubscribe" in the message body.
Need help? Email <jed-users-owner@xxxxxxxxxxx>.
[2006 date index]
[2006 thread index]
[Thread Prev] [Thread Next]
[Date Prev] [Date Next]