public TMLRuleBasedPartitionScanner() {
List<IPredicateRule> rules = new ArrayList<IPredicateRule>();
SingleLineRule mdHeaderRule = new SingleLineRule("##MD", null, new Token(TMLPartitionScanner.TML_METAHEADER), '\\', true);
mdHeaderRule.setColumnConstraint(0);
rules.add(mdHeaderRule);
rules.add(new MultiLineRule("<!--", "-->", new Token(TMLPartitionScanner.COMMENT), '\\', true));
rules.add(new MultiLineRule("<tml:comment>", "</tml:comment>", new Token(TMLPartitionScanner.TML_COMMENT), '\\', true));
rules.add(new MultiLineRule("<tml:disable>", "</tml:disable>", new Token(TMLPartitionScanner.TML_DISABLE), '\\', true));
rules.add(new TagRule("<tml:", ">", new Token(TMLPartitionScanner.TML_TAG_START), '\\', true));
//rules.add(new MultiLineRule("<tml:", ">", new Token(TMLPartitionScanner.TML_TAG_START), '\\', true));
rules.add(new SingleLineRule("</tml:", ">", new Token(TMLPartitionScanner.TML_TAG_STOP)));
setPredicateRules(rules.toArray(new IPredicateRule[0]));
}