Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 332919

Summary: Syntax Coloring - 'Static fields' doesn't work well
Product: z_Archived Reporter: Toshihiro Izumi <euthanasia_waltz>
Component: PDTAssignee: PHP UI <php.ui-inbox>
Status: CLOSED FIXED QA Contact: Ilina Stefanova <ilina.s>
Severity: minor    
Priority: P1 CC: ilina.s
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
patch for preference page
none
patch for editor none

Description Toshihiro Izumi CLA 2010-12-20 02:07:19 EST
Steps to reproduce:
1. Open Preferences>PHP>Editor>Syntax Coloring
2. Select 'Static fields' (it is enabled and 'Italic' is checked by default)
3. Click 'Bold' for example
=> Sample text won't be changed, '$my_static' should be displayed in italic and bold
4. Click '$my_static' in sample text
=> 'Fields' in elements list will be selected, 'Static fields' should be selected

In PHP Editor, 'Static fields' coloring doesn't work in declaration but works in statement.
class Foo {
	public static $sta=0; // colored according to 'Fields' setting
}
Foo::$sta; // colored according to 'Static fields' setting
Comment 1 Toshihiro Izumi CLA 2010-12-29 19:52:24 EST
Created attachment 185893 [details]
patch for preference page
Comment 2 Toshihiro Izumi CLA 2010-12-29 19:52:52 EST
Created attachment 185894 [details]
patch for editor
Comment 3 Zhongwei Zhao CLA 2011-04-19 00:59:15 EDT
great,it is ok for me,applied to head,thanks!
Comment 4 Ilina Stefanova CLA 2011-07-26 03:13:54 EDT
Verified.