2 * Created on 28.04.2003
5 package net.sourceforge.phpeclipse.phpeditor.php;
7 import net.sourceforge.phpdt.internal.ui.text.IPHPPartitions;
9 import org.eclipse.jface.text.IDocument;
13 * @version $Revision: 1.2 $
15 public class PHPPartition_delete_it extends Partition
17 private boolean fShortTagsEnabled = true;
23 * @param parentPartition
25 public PHPPartition_delete_it(IDocument document, String parentPartition)
29 new char[] { '<', '>' },
30 IPHPPartitions.PHP_PARTITIONING,
37 * @see net.sourceforge.phpeclipse.phpeditor.php.Partition#allowedPartition(java.lang.String)
39 protected boolean allowedPartition(String type)
41 if(type.equals(IPHPPartitions.PHP_PHPDOC_COMMENT))
48 * @see net.sourceforge.phpeclipse.phpeditor.php.Partition#scan()
50 protected boolean scan()
53 if(fShortTagsEnabled && checkPattern("<?", true))
57 else if(checkPattern("<?php", false))
67 private void scanToEnd()
72 while(!checkPattern("?>", true))
74 int offset = getOffset();
75 if(checkPattern("/*", true))