> Initial Comment:
> Bracematching doesn't work on html/xml documents. This is because some
tag
> get different styling on the '>'. These will get the SCE_H_XMLEND or
> SCE_H_TAGEND style while the '<' gets another style. So these won't
match.
> 
> In my opinion these should match.

I get a matching brace problem when editing a Java method's code in
Scintilla. We use Scintilla in our Javelin product. We call on the brace
matching functions of Scintilla to determine whether or not all braces
are matched in a method before allowing the user to commit changes to
the method. The editor contains ONLY the code for the method - from the
starting { to the ending }, not including the function signature - which
is displayed above the method in some separate controls.

It works fine most of the time but occasionally it gets it wrong and
says that there is a mismatch when there isn't. It has something to do
with the current position of the cursor because you can move the cursor
to a different position and then the matching brace algorithm succeeds
and allows the user to commit the changes to the method - without making
any changes to the code - just a cursor position change.

_______________________________________________
Scintilla-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scintilla-interest

Reply via email to