This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | Wrong keyword color in new Fonts&Colors profile | ||
---|---|---|---|
Product: | editor | Reporter: | soldatov <soldatov> |
Component: | Options | Assignee: | Milutin Kristofic <mkristofic> |
Status: | VERIFIED FIXED | ||
Severity: | normal | CC: | issues |
Priority: | P2 | ||
Version: | 8.2 | ||
Hardware: | PC | ||
OS: | Solaris | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: | proposed patch |
Description
soldatov
2016-10-04 10:06:11 UTC
It seems method ColoringStorage.load() does wrong things if token name has '-'. For example after restart C++ keywords of duplicated color scheme has attributes: "keyword => {S6{name=keyword,display name=Keyword,default=preprocessor-keyword-directive}}" which point to green color. Whereas xml has: <fontcolor default="keyword" name="keyword"/> Created attachment 162330 [details]
proposed patch
Thank you, you are right, it is some archaic code. http://hg.netbeans.org/jet-main/rev/be49eae46594 Integrated into 'main-silver', will be available in build *201610060002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/be49eae46594 User: Milutin Kristofic <mkristofic@netbeans.org> Log: #268335 - Wrong keyword color in new Fonts&Colors profile Thanks! Verified in internal NetBeans 8,2 patch 1 build. |