import org.eclipse.jface.text.rules.WhitespaceRule;
public class SentenceScanner extends RuleBasedScanner {
public SentenceScanner(ColorManager manager) {
IToken string = new Token(new TextAttribute(manager.getStringColor()));
final Token terminals = new Token(new TextAttribute(manager.getTerminalsColor()));
Token template = new Token(new TextAttribute(manager.getTemplateColor()));
Token keyword = new Token(new TextAttribute(manager.getKeywordsColor()));
Token others = new Token(new TextAttribute(manager.getOtherColor()));
final List<IRule> rules = new ArrayList<IRule>();
// Add rule for double quotes
rules.add(new SingleLineRule("\"", "\"", string, '\\'));