| 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: | PDT | Assignee: | 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
eclipsebug
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! Created attachment 200341 [details]
Ctrl+Alt+Down/up in HEREDOC body breaks syntax coloring of next php code
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.
fixed Will be retested when the next build is up. Verified, not reproducible. |