From 0cbcb912a593b30757f464268984cf37fded22be Mon Sep 17 00:00:00 2001 From: Anton Leherbauer Date: Fri, 17 Apr 2009 06:48:58 +0000 Subject: [PATCH] Bug 272124 - Keywords starting with @ aren't recognized by editor, patch by Alex Blewitt --- .../org/eclipse/cdt/internal/ui/text/util/CWordDetector.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/text/util/CWordDetector.java b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/text/util/CWordDetector.java index c5a182fd20c..24bf90b4a57 100644 --- a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/text/util/CWordDetector.java +++ b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/text/util/CWordDetector.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2000, 2006 IBM Corporation and others. + * Copyright (c) 2000, 2009 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -23,7 +23,7 @@ public class CWordDetector implements IWordDetector { * @see org.eclipse.jface.text.rules.IWordDetector#isWordStart(char) */ public boolean isWordStart(char c) { - return Character.isJavaIdentifierStart(c); + return Character.isJavaIdentifierStart(c) || c == '@'; } /*