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:
parent
e90d3d2187
commit
43cc7240f6
1 changed files with 2 additions and 3 deletions
|
@ -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 == '#';
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue