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

Bug 311666

Summary: HEREDOC syntax coloring is not applied despite php code was repaired.
Product: z_Archived Reporter: Kalin <kalin.a>
Component: PDTAssignee: PHP UI <php.ui-inbox>
Status: CLOSED FIXED QA Contact: Kalin <kalin.a>
Severity: normal    
Priority: P1 CC: gadi, ganoro
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Kalin CLA 2010-05-05 03:57:23 EDT
Build Identifier: EclipsePdt-2.2.0.v20100427

The whole HEREDOC element is still black colored, in spite of HEREDOC body was repaired according to the conventions.

Reproducible: Always

Steps to Reproduce:
1.
Copy/paste the following php code in PHP Editor:
<?php
$test = <<<HEREDOC
   my test string
HEREDOC;
?>

Verify HEREDOC element is colored according HEREDOC syntax coloring conventions

2. Add a space just after HEREDOC in line 2
Syntax coloring gets broken, HEREDOC element will be black colored.

3. Repair the code by removing the just added space.

Expected:
The proper HEREDOC syntax coloring should be applied again.

Actual:
The whole HEREDOC element is still black colored.
Comment 1 Gadi Goldbarg CLA 2010-05-05 04:05:06 EDT
Inspired by bug 253646
Comment 2 Zhongwei Zhao CLA 2010-05-05 04:45:07 EDT
There is a kind of such problem,for example:

/**
 * 
 */
 
=>
/***
 * 
 */
 
=>

/**
 * 
 */
Comment 3 Zhongwei Zhao CLA 2010-05-24 23:10:43 EDT
fixed in head
Comment 4 Gadi Goldbarg CLA 2010-06-18 08:19:02 EDT
Verified at PDT-2.2.0.v20100616
Syntax coloring now looks fine and closing this issue

Verified by
Teodor Kirkov
teodor.k@zend.com