/** * This class provides some of the guidlines for keyword punctuation location * by the XRuleScanner. * * @author JSeifried * @version 0.1.0 * @see XRuleScanner */ package jseifried.xaspecteditor.highlight; import org.eclipse.jface.text.rules.IWordDetector; public class XPunctuationDetector implements IWordDetector, IXAspectKeys { public boolean isWordStart(char c) { for (int i = 0; i < punctuation.length; i++) { if (((String) punctuation[i]).charAt(0) == c) return true; } return false; } public boolean isWordPart(char c) { return false; } }