* Contributors:
* Igor Malinin - initial contribution
*
- * $Id: XMLCDATAScanner.java,v 1.2 2005-05-06 00:55:41 stefanbjarni Exp $
+ * $Id: XMLCDATAScanner.java,v 1.3 2007-04-05 07:50:15 toshihiro Exp $
*/
package net.sourceforge.phpeclipse.xml.ui.internal.text;
offset += length;
if (position == begin) {
- position += 3; // <![
-
+//#1622108
+// position += 3; // <![
+// try {
+// if (document.get(position, 6).equals("CDATA[")) {
+// position += 6;
+// }
+// } catch (BadLocationException e) {
+// }
try {
- if (document.get(position, 6).equals("CDATA[")) {
- position += 6;
- }
+ if (document.get(position, 3).equals("<![")) {
+ position += 3;
+ if (document.get(position, 6).equals("CDATA[")) {
+ position += 6;
+ }
+ } // else: xml cdata part is divided by php script block
} catch (BadLocationException e) {
}