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

Bug 312196

Summary: Syntax Highlighting: Statements with line continuations highlight incorrectly
Product: [Tools] PTP Reporter: David Bal <ddbal1>
Component: Photran.Editor & Outline ViewAssignee: Photran Inbox <photran-inbox>
Status: CLOSED FIXED QA Contact:
Severity: normal    
Priority: P4 CC: com-eclipse-dot-org, dharenberg, petrenkomaxim
Version: 5.0   
Target Milestone: 8.0   
Hardware: PC   
OS: Linux   
Whiteboard:
Bug Depends on: 372912    
Bug Blocks:    

Description David Bal CLA 2010-05-09 20:32:16 EDT
If you continue a line for an if-construct the then is not highlighted red as usual.  See the below code as an example.

if (a > b .and. &
   (c > d) then
	call work(a,c)
endif
Comment 1 Jeffrey Overbey CLA 2010-05-13 17:34:40 EDT
Thanks for the bug report.  The syntax highlighting currently works on one (physical) line at a time, so it's fairly easy to break it by inserting line continuations creatively.  We'll keep this on file... eventually we should change it to work in terms of statements (taking line continuations into account) rather than physical lines in the file.

I thought we had a bug open for this problem, but I can't find it, so I've adjusted the name of this bug to be a bit more general.

Thanks again.
Comment 2 Jeffrey Overbey CLA 2010-07-14 12:50:49 EDT
*** Bug 319869 has been marked as a duplicate of this bug. ***
Comment 3 Daniel Harenberg CLA 2011-04-16 08:22:45 EDT
I thought I had opened a duplicate, but can't find it. Anyway, I don't think continuation lines are that rare, so this should have a higher priority? Maybe to be fixed in 7.0?
Comment 4 Jeffrey Overbey CLA 2012-02-29 16:35:16 EST
This has been fixed in Photran 8/Juno.

Commit 3d413256d609149729aecad9e4e6c872e0962dfd
Comment 5 Jeffrey Overbey CLA 2012-04-24 10:54:40 EDT
Closing for 8.0