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

Bug 315003

Summary: Semantic Highlighting lost, when I defined my own Syntax Coloring for Parameter variables
Product: z_Archived Reporter: Silver Zachara <silver.zachara>
Component: PDTAssignee: PHP Core <php.core-inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: major    
Priority: P3 CC: ganoro, zhaozhongwei
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Bug Depends on:    
Bug Blocks: 302038    
Attachments:
Description Flags
Changes in Preferences none

Description Silver Zachara CLA 2010-05-30 08:52:09 EDT
Hi,

the other thing how to reproduce this bug is define your own style for [b]Syntax Coloring[b].

I have tried this and Semantic Highlighting lost during editing the file:
Preferences - Editor - Syntax Coloring: Syntax Element - Parameter variables - Enable, Underline and change color.
Comment 1 Silver Zachara CLA 2010-05-30 08:55:37 EDT
Created attachment 170472 [details]
Changes in Preferences
Comment 2 Zhongwei Zhao CLA 2010-05-30 09:16:06 EDT
Hi sNop

Can you attach your file that make Semantic Highlighting lost?

   public function __get($sName,$dd)
   {
   }
works fine

and 
   public function __get($sName,$dd,)
   {
   }
make $sName,$dd lost there Semantic Highlighting,but other Semantic Highlighting is ok.

Is this the same as your case?
Comment 3 Silver Zachara CLA 2010-06-01 09:10:21 EDT
(In reply to comment #2)
> Hi sNop
> 
> Can you attach your file that make Semantic Highlighting lost?
> 

I don't have a file, but when I worked with one of my projects and I defined my own Syntax Coloring for Parameter Variables ( as is described above ), so Semantic Highlighting lost.

> public function __get($sName,$dd)
> {
> }
> works fine
> 
> and
> public function __get($sName,$dd,)
> {
> }
> make $sName,$dd lost there Semantic Highlighting,but other Semantic Highlighting
> is ok.
> 
> Is this the same as your case?

No, but it's other case when Semantic Highlighting lost.

I don't know whether to define my own Syntax Coloring for Parameter Variables to 100% relate with Semantic Highlighting lost.

When I will have time I attach video, how to reproduce this bug.
Comment 4 Zhongwei Zhao CLA 2010-06-01 09:16:07 EDT
Thanks,if you attach the video this week,maybe we will fix this bug in pdt2.2 release.Because I do not know how to reproduce the bug,I have tried a long time:(
Comment 5 Silver Zachara CLA 2010-06-01 09:40:07 EDT
(In reply to comment #4)
> Thanks,if you attach the video this week,maybe we will fix this bug in pdt2.2
> release.Because I do not know how to reproduce the bug,I have tried a long
> time:(

For that reason PDT QA and testers should take care about this issue and try reproduce every possible problem.

Pls look at bug 302038 at comment 14
Comment 6 Roy Ganor CLA 2010-06-17 08:39:05 EDT
duplicate

*** This bug has been marked as a duplicate of bug 302038 ***