wxSTC, BraceHighlight

Hi,

win98, wxPy2515, Py233

It seems to me, I read somewhere, that BraceHighlighting in wxPy2515 is broken.
Something like "wrong highlight when braces are on two different lines"

Am I right or should I check my code?

Thanks

Jean-Michel Fauth, Switzerland

Jean-Michel Fauth wrote:

Hi,

win98, wxPy2515, Py233

It seems to me, I read somewhere, that BraceHighlighting in wxPy2515 is broken.
Something like "wrong highlight when braces are on two different lines"

Am I right or should I check my code?

I think you're right. There was some issue like that.
...
You are right. The 2.5.1.5 demo code also has this problem.

Regards
    adi

Jean-Michel Fauth wrote:

It seems to me, I read somewhere, that BraceHighlighting in wxPy2515 is broken.
Something like "wrong highlight when braces are on two different lines"

Am I right or should I check my code?

Originally I had thought that wasn't the case, but looking at it now in PyPE, SPE, and my own IDE/editor it's doing exactly the same thing. If the braces are on different lines, the matching doesn't seem to work right. But it's inconsistent. If you can get *any* braces on the same line to light up, then the others will then work as well. I.e.

    test_code( one
           (two), three)

In this case, if I select the brace near "three" it won't light, but if I go over to 'two' and get it to light, then cursor back to 'three', then it and the matching brace "one" will light up.

Weird.

Jean-Michel Fauth wrote:

Hi,

win98, wxPy2515, Py233

It seems to me, I read somewhere, that BraceHighlighting in wxPy2515 is broken.
Something like "wrong highlight when braces are on two different lines"

Am I right or should I check my code?

You are correct. I fixed this on Monday.

http://cvs.wxwidgets.org/viewcvs.cgi/wxWidgets/contrib/src/stc/ScintillaWX.cpp.diff?r1=1.64&r2=1.65

ยทยทยท

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!