Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 311666 - HEREDOC syntax coloring is not applied despite php code was repaired.
Summary: HEREDOC syntax coloring is not applied despite php code was repaired.
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: PDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P1 normal (vote)
Target Milestone: ---   Edit
Assignee: PHP UI CLA
QA Contact: Kalin CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-05 03:57 EDT by Kalin CLA
Modified: 2020-05-14 11:07 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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