From ebdccb98765c38e67c33c94c0512e4bd8863e39c Mon Sep 17 00:00:00 2001 From: Ben Fry Date: Fri, 11 Sep 2015 09:43:39 -0400 Subject: [PATCH] change tweak comment matcher (fixes #3742) --- .../mode/java/tweak/SketchParser.java | 4 ++++ todo.txt | 18 +++++++++--------- 2 files changed, 13 insertions(+), 9 deletions(-) diff --git a/java/src/processing/mode/java/tweak/SketchParser.java b/java/src/processing/mode/java/tweak/SketchParser.java index a68b92425..9ce2cdd09 100644 --- a/java/src/processing/mode/java/tweak/SketchParser.java +++ b/java/src/processing/mode/java/tweak/SketchParser.java @@ -627,9 +627,13 @@ public class SketchParser { static private boolean hasTweakComment(String code) { + // https://github.com/processing/processing/issues/3742 + return code.contains("/// tweak"); + /* Pattern p = Pattern.compile("\\/\\/.*tweak", Pattern.CASE_INSENSITIVE); Matcher m = p.matcher(code); return m.find(); + */ } diff --git a/todo.txt b/todo.txt index 8ccce9660..90c72c0b6 100644 --- a/todo.txt +++ b/todo.txt @@ -14,15 +14,9 @@ X https://github.com/processing/processing/issues/3777 X copying just fine X remove old versions of processing-java when installing on OS X X https://github.com/processing/processing/issues/3786 - -_ add jar files from 'code' folder to the library path -_ Code editor wrongly detects errors for libraries in code folder -_ https://github.com/processing/processing/issues/3732 -_ "color type detected! this shouldn't be happening! please report" -_ happens when user does 'new color' instead of 'color' -_ https://github.com/processing/processing/issues/3739 -_ confusion when // tweak is used -_ https://github.com/processing/processing/issues/3742 +X confusion when // tweak is used +X https://github.com/processing/processing/issues/3742 +X change to /// tweak instead jakub X Error/warning location visualisation not updating when editor resizes @@ -77,6 +71,12 @@ _ mouse events (i.e. toggle breakpoint) seem to be firing twice 3.0 final _ https://github.com/processing/processing/milestones/3.0%20final +_ add jar files from 'code' folder to the library path +_ Code editor wrongly detects errors for libraries in code folder +_ https://github.com/processing/processing/issues/3732 +_ "color type detected! this shouldn't be happening! please report" +_ happens when user does 'new color' instead of 'color' +_ https://github.com/processing/processing/issues/3739 _ change Tool API because it's not one Editor per Tool anymore? _ or just change the documentation? _ Contributions Manager UI design