Bug 148277 - wchar_t characters aren't highlighted as characters
Summary: wchar_t characters aren't highlighted as characters
Status: RESOLVED NOT A BUG
Alias: None
Product: kate
Classification: Applications
Component: syntax (show other bugs)
Version: 2.5
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: KWrite Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-07-28 00:29 UTC by greatbunzinni
Modified: 2007-10-18 15:35 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description greatbunzinni 2007-07-28 00:29:45 UTC
Version:           3.4.1 (using KDE KDE 3.5.7)
Installed from:    Ubuntu RPMs

It seems that, when a wchar_t character is written ( L'c' ), kdevelop's editor doesn't handle it as a character and therefore doesn't highlight it as such.

It would be nice if kdevelop's editor could highlight wchar_t characters as if they were characters.
Comment 1 greatbunzinni 2007-07-28 00:32:02 UTC
Correction: characters such as L'c' seem to be, in fact, highlighted as characters. Those which aren't highlighted are those that are defined through an escape sequence, such as L'\x0000'.
Comment 2 Andreas Pakulat 2007-07-28 02:13:49 UTC
KDevelop has no editor, it uses kate so this is a bugreport for kate.
Comment 3 Pino Toscano 2007-07-31 00:35:58 UTC
(Really reassing to the Kate guys.)
Comment 4 Sebastian Pipping 2007-10-06 03:07:31 UTC
Do I understand right that string are detected correctly but you want the leading "L" to be in string color as well?
Comment 5 greatbunzinni 2007-10-09 08:55:44 UTC
Not quite. What I tried to say was that, unlike the case of regular character constants ('a', '1', etc...), if a character constant is described as a bit pattern through octal or hexadecimal encoding ('\x123', '\o123') then that notation will not be coloured as the regular, simple character constants.

To put it simply, 'a' gets the constant syntax highlighting but '\x123' and '\o123' do not.
Comment 6 Sebastian Pipping 2007-10-09 22:41:03 UTC
Seems like I didn't read your correction, sorry. What you describe is actually a feature: people have done extra work to make escape sequences stand out.

If you don't like that I guess the best way is to "fix" the highlighter on your end. Should be a five minute thing: all you need to do is change a line in the <itemDatas>. If you feel like this is what you need but cannot get it to work I can make you a patch.
Comment 7 Sebastian Pipping 2007-10-18 15:35:52 UTC
Feature, not a bug.