fixed: java.lang.IllegalArgumentException: Attempted to beginRule...
[phpeclipse.git] / net.sourceforge.phpeclipse / src / net / sourceforge / phpdt / internal / formatter / CodeFormatter.java
index 7938516..7efbade 100644 (file)
@@ -132,16 +132,16 @@ public class CodeFormatter implements ITerminalSymbols, ICodeFormatter {
     , true /* whitespace */
     , false /* nls */
     , false /* assert */
-    , true /* tokenizeStrings */
-    ); // regular scanner for forming lines
+    , true, /* tokenizeStrings */
+    null, null); // regular scanner for forming lines
     scanner.recordLineSeparator = true;
     // to remind of the position of the beginning of the line.
     splitScanner = new Scanner(true /* comment */
     , true /* whitespace */
     , false /* nls */
     , false /* assert */
-    , true /* tokenizeStrings */
-    );
+    , true, /* tokenizeStrings */
+    null, null);
     // secondary scanner to split long lines formed by primary scanning
     // initialize current line buffer
     currentLineBuffer = new StringBuffer();
@@ -1277,7 +1277,7 @@ public class CodeFormatter implements ITerminalSymbols, ICodeFormatter {
         //                     || token == TokenNameFloatingPointLiteral
         || token == TokenNameDoubleLiteral
         //                     || token == TokenNameCharacterLiteral
-        || token == TokenNameStringLiteral;
+        || token == TokenNameStringDoubleQuote;
     return result;
   }
   /**