X-Git-Url: http://git.phpeclipse.com diff --git a/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/phpeditor/php/PHPPartitionScanner.java b/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/phpeditor/php/PHPPartitionScanner.java index 5d25697..514e802 100644 --- a/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/phpeditor/php/PHPPartitionScanner.java +++ b/net.sourceforge.phpeclipse/src/net/sourceforge/phpeclipse/phpeditor/php/PHPPartitionScanner.java @@ -8,7 +8,7 @@ Contributors: Igor Malinin - initial contribution - $Id: PHPPartitionScanner.java,v 1.33 2005-10-10 19:56:02 axelcl Exp $ + $Id: PHPPartitionScanner.java,v 1.34 2006-10-21 23:18:32 pombredanne Exp $ **********************************************************************/ package net.sourceforge.phpeclipse.phpeditor.php; @@ -27,8 +27,8 @@ import org.eclipse.jface.text.rules.IToken; import org.eclipse.jface.text.rules.Token; /** - * - * + * + * * @author Igor Malinin */ public class PHPPartitionScanner implements IPartitionTokenScanner { @@ -267,7 +267,8 @@ public class PHPPartitionScanner implements IPartitionTokenScanner { if (position >= end) { return false; } - ch = document.getChar(position++); // ignore escaped character + ch = document.getChar(position++); // ignore escaped + // character } else if (ch == '"') { return true; } @@ -291,7 +292,8 @@ public class PHPPartitionScanner implements IPartitionTokenScanner { if (position >= end) { return false; } - ch = document.getChar(position++); // ignore escaped character + ch = document.getChar(position++); // ignore escaped + // character } else if (ch == '\'') { return true; } @@ -337,7 +339,8 @@ public class PHPPartitionScanner implements IPartitionTokenScanner { if (pos == heredocIdent.length) { return true; } - ch = document.getChar(position++); // ignore escaped character + ch = document.getChar(position++); // ignore escaped + // character if (ch != heredocIdent[pos]) { break; } @@ -427,7 +430,8 @@ public class PHPPartitionScanner implements IPartitionTokenScanner { /* * @see org.eclipse.jface.text.rules.IPartitionTokenScanner */ - public void setPartialRange(IDocument document, int offset, int length, String contentType, int partitionOffset) { + public void setPartialRange(IDocument document, int offset, int length, + String contentType, int partitionOffset) { // state = STATE_DEFAULT; if (partitionOffset > -1) { int delta = offset - partitionOffset;