summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoryyangi8r2013-09-06 03:32:21 (EDT)
committer Sergey Prigogin2013-09-25 00:55:11 (EDT)
commitf9cfbdd0ffadfa449e79d3e33c33f9137c1c36ca (patch)
tree402f9a502e4356dfacbde706745ab335eecea8e0
parentf2b81954e78532a56409b2c574018d383534e7fa (diff)
downloadorg.eclipse.cdt-f9cfbdd0ffadfa449e79d3e33c33f9137c1c36ca.zip
org.eclipse.cdt-f9cfbdd0ffadfa449e79d3e33c33f9137c1c36ca.tar.gz
org.eclipse.cdt-f9cfbdd0ffadfa449e79d3e33c33f9137c1c36ca.tar.bz2
Bug 416682 - [Keyword Highlight] Customized key word not highlightedrefs/changes/74/16174/2
after double quotation character Change-Id: I81e4f5738d5c312c945d282c5041f4a49746624e Signed-off-by: yyangi8r <bjyangyy@cn.ibm.com> Reviewed-on: https://git.eclipse.org/r/16174 Reviewed-by: Sergey Prigogin <eclipse.sprigogin@gmail.com> IP-Clean: Sergey Prigogin <eclipse.sprigogin@gmail.com> Tested-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
-rw-r--r--core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/text/FastCPartitionScanner.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/text/FastCPartitionScanner.java b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/text/FastCPartitionScanner.java
index f799aaa..fe7a880 100644
--- a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/text/FastCPartitionScanner.java
+++ b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/text/FastCPartitionScanner.java
@@ -383,9 +383,9 @@ public final class FastCPartitionScanner implements IPartitionTokenScanner, ICPa
default:
if ('a' <= ch && ch <= 'z' || 'A' <= ch && ch <= 'Z' || ch =='_') {
fLast = IDENT;
- fTokenOffset++;
+ fTokenLength++;
} else if ('0' <= ch && ch <= '9' && fLast == IDENT) {
- fTokenOffset++;
+ fTokenLength++;
} else {
consume();
}