1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-01 22:25:25 +02:00

fix C '#' derectives not bing highlighted

This commit is contained in:
David Inglis 2002-09-24 13:36:38 +00:00
parent e90d3d2187
commit 43cc7240f6

View file

@ -12,13 +12,12 @@ import org.eclipse.jface.text.rules.IWordDetector;
* 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 == '#';
}
/**