use the underlying default styles to check, whether the current char is valid code or uninteresting part (like comments and strings).
use the underlying default styles to check, whether the current char is valid code
or uninteresting part (like comments and strings).

The flow is as follows:
1. get the attribute list of the current highlighting
   (it uses the KateRenderer, is there another way to get the list?)
2. get the current attribute
3. use this attribute as index for the attribute list
4. read the property AttributeDefaultStyleIndex and convert it to int
5. now we have the current character's defaultStyle
6. check, whether the defaultStyle is usable
7. if so, count the braces...

Imo, this is much better than the hack in KDE3 (which used the itemData names).
Todo:
* find a good place for a mapping function from attribute<->defaultStyle
* refactor to avoid code duplication ;)
* write a usable indenter (ewh)

CCMAIL: kwrite-devel@kde.org

svn path=/trunk/KDE/kdelibs/kate/; revision=690045

jfmcarreira/kate,hlamer/kate,hlamer/kate,hlamer/kate,hlamer/kate,hlamer/kate,hlamer/kate,hlamer/kate,sandsmark/kate,cmacq2/kate,DickJ/kate,sandsmark/kate,hlamer/kate,DickJ/kate,DickJ/kate,sandsmark/kate,DickJ/kate,hlamer/kate,cmacq2/kate,jfmcarreira/kate,hlamer/kate,sandsmark/kate,cmacq2/kate,jfmcarreira/kate