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

Bug 332385

Summary: Cannot insert space before heredoc end tag
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: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
.log
none
patch none

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.