Skip to main content
summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorAndrew Niefer2004-03-29 17:21:45 -0500
committerAndrew Niefer2004-03-29 17:21:45 -0500
commitb5f7b12be4bf6cc34db88bd97a7d211ca33b100d (patch)
tree530b8a5c89d0d1b07792030429f7804b64f13df8 /core
parent266e19853c9362181618eca43bd69a53b253b65e (diff)
downloadorg.eclipse.cdt-b5f7b12be4bf6cc34db88bd97a7d211ca33b100d.tar.gz
org.eclipse.cdt-b5f7b12be4bf6cc34db88bd97a7d211ca33b100d.tar.xz
org.eclipse.cdt-b5f7b12be4bf6cc34db88bd97a7d211ca33b100d.zip
fixed bug 56620 - Outline view stops on error on last line of block
(errorHandling() goes to far)
Diffstat (limited to 'core')
-rw-r--r--core/org.eclipse.cdt.core/parser/ChangeLog-parser4
-rw-r--r--core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/Parser.java3
2 files changed, 7 insertions, 0 deletions
diff --git a/core/org.eclipse.cdt.core/parser/ChangeLog-parser b/core/org.eclipse.cdt.core/parser/ChangeLog-parser
index 6908786fb9..ae7c7468e4 100644
--- a/core/org.eclipse.cdt.core/parser/ChangeLog-parser
+++ b/core/org.eclipse.cdt.core/parser/ChangeLog-parser
@@ -1,3 +1,7 @@
+2004-03-29 Andrew Niefer
+ fixed bug 56620 - Outline view stops on error on last line of block
+ (errorHandling() goes to far)
+
2004-03-29 John Camelon
Fixed Bug 56517 - Preprocessor skipping doesn't ignore the contents of string literals.
diff --git a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/Parser.java b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/Parser.java
index 09c5f51ffc..f027042304 100644
--- a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/Parser.java
+++ b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/Parser.java
@@ -211,6 +211,9 @@ public abstract class Parser extends ExpressionParser implements IParser
--depth;
break;
}
+ if( depth < 0 )
+ return;
+
consume();
}
// eat the SEMI/RBRACE as well

Back to the top