IToken djTag = colorProvider.getToken(IDjangoPrefs.DJKEYWORD_COLOR, IDjangoPrefs.DJKEYWORD_STYLE);
IToken djVariable = colorProvider.getToken(IDjangoPrefs.DJVARIABLE_COLOR, IDjangoPrefs.DJVARIABLE_STYLE);
rules.add(new MultiLineRule("{%", "%}", djTag));
rules.add(new MultiLineRule("{{", "}}", djVariable));
rules.add(new SingleLineRule("\"", "\"", string, '\\'));
rules.add(new SingleLineRule("'", "'", string, '\\'));
rules.add(new EndOfLineRule("//", comment));
rules.add(new MultiLineRule("/*", "*/", comment));
rules.add(new SingleLineRule("<script", ">", script));
rules.add(new SingleLineRule("</script", ">", script));
rules.add(new NumberRule(number));
rules.add(new WhitespaceRule(new DjangoWhitespaceDetector()));
WordRule wordRule = new WordRule(new GenericWordDetector(), normal);