/*
 * Created on Nov 24, 2003
 *
 * To change the template for this generated file go to
 * Window&gt;Preferences&gt;Java&gt;Code Generation&gt;Code and Comments
 */
package aspectEditor.editors;

import org.eclipse.jface.text.rules.IWordDetector;

/**
 * @author pclab
 *
 * To change the template for this generated type comment go to
 * Window&gt;Preferences&gt;Java&gt;Code Generation&gt;Code and Comments
 */
public class InputWordDetector implements IWordDetector {

	/* (non-Javadoc)
	 * @see org.eclipse.jface.text.rules.IWordDetector#isWordStart(char)
	 */
	public boolean isWordStart(char c) {
		return (Character.isLetterOrDigit(c) || (c == '|') || (c == '>') 
				||(c == '-') || (c == '&') || (c == '!') || (c == '=') || (c == ';') || (c == '{') || (c == '}') || (c == '.') 
				|| (c == ':') || (c == '(') || (c == ')') || (c == ','));
	}

	/* (non-Javadoc)
	 * @see org.eclipse.jface.text.rules.IWordDetector#isWordPart(char)
	 */
	public boolean isWordPart(char c) {
		return (Character.isLetterOrDigit(c) || (c == '|') || (c == '>') || (c == '-') || (c == '&') || (c == '!') || (c == '{'));
	}

}
