1 package net.sourceforge.phpeclipse.editors;
3 import org.eclipse.jface.text.rules.*;
5 public class TagRule extends MultiLineRule {
7 public TagRule(IToken token) {
8 super("<", ">", token);
10 protected boolean sequenceDetected(
11 ICharacterScanner scanner,
14 int c = scanner.read();
15 if (sequence[0] == '<') {
17 // processing instruction - abort
26 } else if (sequence[0] == '>') {
29 return super.sequenceDetected(scanner, sequence, eofAllowed);