Menu

#14 "fore:#00007F" breaks indentation

open
nobody
None
5
2004-03-17
2004-03-17
Chris Green
No

class a:
def __init__(self):
self.StyleSetSpec(self.STYLE_FIELD,
"fore:#00007F" )
self.StyleSetSpec(self.STYLE_FIELD,
"fore:#00007F" )
self.StyleSetSpec(self.STYLE_FIELD,
"fore:#00007F" )
self.StyleSetSpec(self.STYLE_FIELD,
"fore:#00007F" )

Discussion

  • Chris Green

    Chris Green - 2004-03-17

    Logged In: YES
    user_id=429629

    Aiee! Didn't realize there was no formatting in these boxes
    ( too used to wiki )

     
  • Chris Green

    Chris Green - 2004-03-17

    breakwithhash.py

     
  • Skip Montanaro

    Skip Montanaro - 2004-10-23

    Logged In: YES
    user_id=44345

    Sorry it's taken me so long to look into this. I believe I
    found the problem but don't know how to fix it, so I'll
    describe what I found so that maybe someone with more
    lisp-fu than me can solve the problem.

    Basically, too much reliance is placed on regular
    expressions to determine the end of the first line of a
    compound statement. In (py-statement-opens-block-p) it
    searches "for a colon with nothing after it except
    whitespace, and maybe a comment". Unfortunately, once it
    gets there, it's smack dab in the middle of a string. There
    is a check for being in a comment, but not one for being in
    a string. I somehow think the proper solution might involve
    calling (py-in-literal), but I'm having trouble making it
    work. If we're in a string we need to keep searching.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.