Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 332385 - Cannot insert space before heredoc end tag
Summary: Cannot insert space before heredoc end tag
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: PDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 minor (vote)
Target Milestone: ---   Edit
Assignee: PHP UI CLA
QA Contact: Ilina Stefanova CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-12-12 00:06 EST by Toshihiro Izumi CLA
Modified: 2020-05-14 11:49 EDT (History)
0 users

See Also:


Attachments
.log (6.14 KB, text/plain)
2010-12-12 00:06 EST, Toshihiro Izumi CLA
no flags Details
patch (2.98 KB, patch)
2010-12-14 23:50 EST, xu jiaxi CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Toshihiro Izumi CLA 2010-12-12 00:06:19 EST
Created attachment 185028 [details]
.log

(Linux only)
1. Edit php script as

<?php
$s=<<<EOM
zzz...
EOM;
echo $s;

2. Move cursor on line 4 (before "EOM;")
3. Hit space key
=>Nothing happened. Space is not inserted.
"java.lang.Error: Error: could not match input" in .log

It is reproducible on Windows by converting line delimiters to Unix.
Comment 1 xu jiaxi CLA 2010-12-14 23:50:15 EST
Created attachment 185199 [details]
patch
Comment 2 Zhongwei Zhao CLA 2011-01-12 02:26:04 EST
committed,thanks to Xu!
Comment 3 Ilina Stefanova CLA 2011-07-26 08:49:43 EDT
Verified.