1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-09 02:36:01 +02:00

Bug 272124 - Keywords starting with @ aren't recognized by editor, patch by Alex Blewitt

This commit is contained in:
Anton Leherbauer 2009-04-17 06:48:58 +00:00
parent 395490c7ae
commit 0cbcb912a5

View file

@ -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 * All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0 * are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at * 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) * @see org.eclipse.jface.text.rules.IWordDetector#isWordStart(char)
*/ */
public boolean isWordStart(char c) { public boolean isWordStart(char c) {
return Character.isJavaIdentifierStart(c); return Character.isJavaIdentifierStart(c) || c == '@';
} }
/* /*