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

Bug 337698

Summary: CTRL+ALT+Up/Down (shortcut for copying line) while in HereDoc syntax block causes the editor to behave abnormally
Product: z_Archived Reporter: eclipsebug
Component: PDTAssignee: Zhongwei Zhao <zhaozhongwei>
Status: CLOSED FIXED QA Contact: Ilina Stefanova <ilina.s>
Severity: minor    
Priority: P2 CC: ganoro, ilina.s, kalin.a
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:
Attachments:
Description Flags
Ctrl+Alt+Down/up in HEREDOC body breaks syntax coloring of next php code none

Description eclipsebug CLA 2011-02-21 04:57:22 EST
Build Identifier: 20100917-0705

CTRL+ALT+Up/Down (shortcut for copying line) while in HereDoc syntax block causes the editor to behave abnormally

Reproducible: Always

Steps to Reproduce:
1.Press CTRL+ALT+Up/Down (on a non empty line) while inside HereDoc block
2.
3.
Comment 1 Zhongwei Zhao CLA 2011-07-12 00:39:15 EDT
I remember someone contributed a patch and I applied it,and now I could not reproduce it,please try the latest nightly build,if you can reproduce it again,please reopen it,thanks!
Comment 2 Kalin CLA 2011-07-26 03:55:35 EDT
Created attachment 200341 [details]
Ctrl+Alt+Down/up in HEREDOC body breaks syntax coloring of next php code
Comment 3 Kalin CLA 2011-07-26 04:04:38 EDT
Still reproducible on Linux (Ubuntu).
Correct behavior on Win.

Preconditions:
Make sure keyboard shortcuts for CTRL+ALT+DOWN and CTRL+ALT+UP are disabled and the machine has been restarted afterwards.
It can be done through: System->Preferences->Keyboard Shortcuts


Example php code:

<?php
$tt =<<<HEREDOC
test|  // | is the cursor position
HEREDOC;
class class_name {
	function function_name() {
		;
	}
}

interface II {
	
}

Press CTRL+ALT+DOWN / CTRL+ALT+UP

Actual:
The whole code following HEREDOC block will be colored in blue.

Press again CTRL+ALT+DOWN / CTRL+ALT+UP: 
Result: The code will be correctly colored.

Press for third time CTRL+ALT+DOWN / CTRL+ALT+UP: 
Result: The syntax coloring will be broken again. Whole code become blue.


I will reopen the issue.
Comment 4 Zhongwei Zhao CLA 2011-08-03 02:36:00 EDT
fixed
Comment 5 Kalin CLA 2011-08-05 07:52:14 EDT
Will be retested when the next build is up.
Comment 6 Ilina Stefanova CLA 2011-08-05 10:14:33 EDT
Verified, not reproducible.