Bug 265387 - Add a syntax coloring for (built-in) literal suffixes
Summary: Add a syntax coloring for (built-in) literal suffixes
Status: ASSIGNED
Alias: None
Product: CDT
Classification: Tools
Component: cdt-editor (show other bugs)
Version: 0 DD 1.1   Edit
Hardware: PC All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Jonah Graham CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-02-18 18:44 EST by CoDial CLA
Modified: 2020-09-04 15:23 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description CoDial CLA 2009-02-18 18:44:40 EST
The syntax coloring engine incorrectly colorise integer literals with suffix. Examlpe:

const long int = 15L;

"15L" should all be colored as an integer while only the "15" part is at this time.
Comment 1 Nathan Ridge CLA 2017-01-15 02:24:40 EST
Literal suffixes are deliberately left uncolored, presumably to distinguish the digits from the suffix.

(User-defined literal suffixes, which are a C++11 feature, are colored, as of bug 484617).

I suppose we could introduce a new coloring for built-in literal suffixes? And then, if you want them to be colored the same as the literals themselves, you could configure the same colors for the two.