2 * (c) Copyright IBM Corp. 2000, 2001.
6 package net.sourceforge.phpdt.ui.text;
11 import net.sourceforge.phpdt.internal.ui.text.AbstractJavaScanner;
13 import org.eclipse.jface.preference.IPreferenceStore;
19 public final class SingleTokenPHPScanner extends AbstractJavaScanner{
22 private String[] fProperty;
24 public SingleTokenPHPScanner(IColorManager manager, IPreferenceStore store, String property) {
25 super(manager, store);
26 fProperty= new String[] { property };
31 * @see AbstractJavaScanner#getTokenProperties()
33 protected String[] getTokenProperties() {
38 * @see AbstractJavaScanner#createRules()
40 protected List createRules() {
41 setDefaultReturnToken(getToken(fProperty[0]));