Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdt-patch] fix CWordDetector to detect C '#' derectives

fix checked in

Index: CWordDetector.java
===================================================================
RCS file: /home/tools/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/text/util/CWordDetector.java,v
retrieving revision 1.1
diff -u -r1.1 CWordDetector.java
--- CWordDetector.java    26 Jun 2002 20:55:44 -0000    1.1
+++ CWordDetector.java    24 Sep 2002 13:35:26 -0000
@@ -12,13 +12,12 @@
 * A C aware word detector.
 */
public class CWordDetector implements IWordDetector {
-
-
+ /**
     * @see IWordDetector#isWordIdentifierStart
     */
    public boolean isWordStart(char c) {
-        return Character.isJavaIdentifierStart(c);
+        return Character.isJavaIdentifierStart(c) || c == '#';
    }
/**




Back to the top