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.
Scenario: - Push Tools|Options - Select "Fonts&Colors" category and Syntax tab - Press Duplicate... button - Type NetBeans111 in Profile Name field - Select C language - Select Keyword category ==> Current Foreground: [blue square] Inherited - Press OK button - Restart IDE - Open Options window again - Check C keyword settings again ==> Current Foreground: [green square] Inherited Now In editor all C or C++ keywords has green colors.
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.