1 package net.sourceforge.phpeclipse.editors;
3 import org.eclipse.jface.text.rules.IWordDetector;
12 * detects the keywords and highlights them
13 * Dans PHPScanner.java
17 public class WordDetector implements IWordDetector {
19 * @see IWordDetector#isWordPart(char)
21 public boolean isWordPart(char ch) {
22 return Character.isJavaIdentifierPart(ch);
26 * @see IWordDetector#isWordStart(char)
28 public boolean isWordStart(char ch) {
29 return Character.isJavaIdentifierStart(ch);