Skip to main content
aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorJohn Camelon2004-10-20 11:08:44 -0400
committerJohn Camelon2004-10-20 11:08:44 -0400
commit07a8507a811532338919d237557c73f58b4cd213 (patch)
treea3e8b637792de3a124e7feb3d314b5e0b4f0bb55 /core
parent2b910440821f0f58e5364b3436106216523e6431 (diff)
downloadorg.eclipse.cdt-07a8507a811532338919d237557c73f58b4cd213.tar.gz
org.eclipse.cdt-07a8507a811532338919d237557c73f58b4cd213.tar.xz
org.eclipse.cdt-07a8507a811532338919d237557c73f58b4cd213.zip
Partial fix for 76480 - [Content assist] shouldn't work on scope operator in C code
Diffstat (limited to 'core')
-rw-r--r--core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/scanner2/Scanner2.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/scanner2/Scanner2.java b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/scanner2/Scanner2.java
index 47dadcc1782..25b33f2f565 100644
--- a/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/scanner2/Scanner2.java
+++ b/core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/parser/scanner2/Scanner2.java
@@ -661,7 +661,7 @@ public class Scanner2 implements IScanner, IScannerData {
case ':':
if (pos + 1 < limit) {
- if (buffer[pos + 1] == ':') {
+ if (buffer[pos + 1] == ':' && getLanguage() == ParserLanguage.CPP ) {
++bufferPos[bufferStackPos];
return newToken(IToken.tCOLONCOLON );
}

Back to the top