*/
public class DjangoPartitionScanner extends RuleBasedPartitionScanner {
public DjangoPartitionScanner() {
IToken djTag = new Token(IDjangoPartitions.DJANGO_TAG);
IToken djVariable = new Token(IDjangoPartitions.DJANGO_VARIABLE);
IToken djComment = new Token(IDjangoPartitions.DJANGO_COMMENT);
IToken htmlComment = new Token(IDjangoPartitions.HTML_COMMENT);
IToken htmlTag = new Token(IDjangoPartitions.HTML_TAG);
IToken htmlScriptlet = new Token(IDjangoPartitions.HTML_SCRIPTLET);
IToken htmlDoctype = new Token(IDjangoPartitions.HTML_DOCTYPE);
IToken htmlDirective = new Token(IDjangoPartitions.HTML_DIRECTIVE);
IToken javaScript = new Token(IDjangoPartitions.JAVA_SCRIPT);
IToken htmlCss = new Token(IDjangoPartitions.HTML_CSS);
List<IPredicateRule> rules = new ArrayList<IPredicateRule>();
rules.add(new MultiLineRule("{% comment %}", "{% endcomment %}", djComment));
rules.add(new SingleLineRule("{#", "#}", djComment));