From 6030f9670b11389a054470a38f39ffcf8c2c6d85 Mon Sep 17 00:00:00 2001 From: "David A. Mellis" Date: Sat, 14 Jul 2012 20:53:20 -0400 Subject: [PATCH] Don't break C++ style (//) comments during auto-format. http://code.google.com/p/arduino/issues/detail?id=255 --- app/src/processing/app/tools/AutoFormat.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/processing/app/tools/AutoFormat.java b/app/src/processing/app/tools/AutoFormat.java index 074e7d8a2..3c2bc9ef0 100644 --- a/app/src/processing/app/tools/AutoFormat.java +++ b/app/src/processing/app/tools/AutoFormat.java @@ -241,7 +241,7 @@ public class AutoFormat implements Tool { public void cpp_comment() throws IOException { c = getchr(); - while(c != '\n' && c != '\r' && j<133) + while(c != '\n' && c != '\r') { string[j++] = c; c = getchr();