b84b6cfb4e8c9249f1ace8bfbe58078fce03eb0b
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpeclipse / editors / WordDetector.java
1 package net.sourceforge.phpeclipse.editors;
2
3 import org.eclipse.jface.text.rules.IWordDetector;
4
5 /**
6  * XML word detector.
7  * 
8  * @author Igor Malinin
9  */
10
11 /** 
12  * detects the keywords and highlights them
13  * Dans PHPScanner.java
14  * 
15  */
16
17 public class WordDetector implements IWordDetector {
18         /**
19          * @see IWordDetector#isWordPart(char)
20          */
21         public boolean isWordPart(char ch) {
22                 return Character.isJavaIdentifierPart(ch);
23         }
24
25         /**
26          * @see IWordDetector#isWordStart(char)
27          */
28         public boolean isWordStart(char ch) {
29                 return Character.isJavaIdentifierStart(ch);
30         }
31
32 }