Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlain Magloire2004-03-01 17:24:56 +0000
committerAlain Magloire2004-03-01 17:24:56 +0000
commit8adf0dd9498aa2d4bc13dc16304a6e105a60d01b (patch)
treee577748b0db8d4e535756124aeb4d4b7dc45264b /build/org.eclipse.cdt.make.ui
parent9bd8b6fb3ae879e13c9a7a674ea080138337b283 (diff)
downloadorg.eclipse.cdt-8adf0dd9498aa2d4bc13dc16304a6e105a60d01b.tar.gz
org.eclipse.cdt-8adf0dd9498aa2d4bc13dc16304a6e105a60d01b.tar.xz
org.eclipse.cdt-8adf0dd9498aa2d4bc13dc16304a6e105a60d01b.zip
check the continuation line.
Diffstat (limited to 'build/org.eclipse.cdt.make.ui')
-rw-r--r--build/org.eclipse.cdt.make.ui/src/org/eclipse/cdt/make/internal/ui/text/makefile/MakefileAnnotationHover.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/build/org.eclipse.cdt.make.ui/src/org/eclipse/cdt/make/internal/ui/text/makefile/MakefileAnnotationHover.java b/build/org.eclipse.cdt.make.ui/src/org/eclipse/cdt/make/internal/ui/text/makefile/MakefileAnnotationHover.java
index ca4423ac9a2..9f0100f662b 100644
--- a/build/org.eclipse.cdt.make.ui/src/org/eclipse/cdt/make/internal/ui/text/makefile/MakefileAnnotationHover.java
+++ b/build/org.eclipse.cdt.make.ui/src/org/eclipse/cdt/make/internal/ui/text/makefile/MakefileAnnotationHover.java
@@ -47,6 +47,16 @@ public class MakefileAnnotationHover implements IAnnotationHover {
try {
IRegion info = document.getLineInformation(lineNumber);
String line = document.get(info.getOffset(), info.getLength());
+ int numberOfLines = document.getNumberOfLines();
+ while (line != null && line.endsWith("\\")) { //$NON-NLS-1$
+ line = line.substring(0, line.length() - 1);
+ lineNumber++;
+ if (lineNumber < numberOfLines) {
+ info = document.getLineInformation(lineNumber);
+ String l = document.get(info.getOffset(), info.getLength());
+ line += "\n" + l; //$NON-NLS-1$
+ }
+ }
if (line != null && line.indexOf('$') != -1 && line.length() > 1) {
IWorkingCopyManager fManager = MakeUIPlugin.getDefault().getWorkingCopyManager();
IMakefile makefile = fManager.getWorkingCopy(fEditor.getEditorInput());

Back to the top