Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 337698 - CTRL+ALT+Up/Down (shortcut for copying line) while in HereDoc syntax block causes the editor to behave abnormally
Summary: CTRL+ALT+Up/Down (shortcut for copying line) while in HereDoc syntax block ca...
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: PDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P2 minor (vote)
Target Milestone: ---   Edit
Assignee: Zhongwei Zhao CLA
QA Contact: Ilina Stefanova CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-21 04:57 EST by eclipsebug CLA
Modified: 2020-05-14 11:07 EDT (History)
3 users (show)

See Also:


Attachments
Ctrl+Alt+Down/up in HEREDOC body breaks syntax coloring of next php code (20.26 KB, image/jpeg)
2011-07-26 03:55 EDT, Kalin CLA
no flags Details

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