Skip to content

Commit ebdccb9

Browse files
committed
change tweak comment matcher (fixes #3742)
1 parent b8ed1ab commit ebdccb9

File tree

2 files changed

+13
-9
lines changed

2 files changed

+13
-9
lines changed

java/src/processing/mode/java/tweak/SketchParser.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -627,9 +627,13 @@ static private boolean lineHasTweakComment(int pos, String code) {
627627

628628

629629
static private boolean hasTweakComment(String code) {
630+
// https://github.com/processing/processing/issues/3742
631+
return code.contains("/// tweak");
632+
/*
630633
Pattern p = Pattern.compile("\\/\\/.*tweak", Pattern.CASE_INSENSITIVE);
631634
Matcher m = p.matcher(code);
632635
return m.find();
636+
*/
633637
}
634638

635639

todo.txt

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,9 @@ X https://github.com/processing/processing/issues/3777
1414
X copying just fine
1515
X remove old versions of processing-java when installing on OS X
1616
X https://github.com/processing/processing/issues/3786
17-
18-
_ add jar files from 'code' folder to the library path
19-
_ Code editor wrongly detects errors for libraries in code folder
20-
_ https://github.com/processing/processing/issues/3732
21-
_ "color type detected! this shouldn't be happening! please report"
22-
_ happens when user does 'new color' instead of 'color'
23-
_ https://github.com/processing/processing/issues/3739
24-
_ confusion when // tweak is used
25-
_ https://github.com/processing/processing/issues/3742
17+
X confusion when // tweak is used
18+
X https://github.com/processing/processing/issues/3742
19+
X change to /// tweak instead
2620

2721
jakub
2822
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
7771

7872
3.0 final
7973
_ https://github.com/processing/processing/milestones/3.0%20final
74+
_ add jar files from 'code' folder to the library path
75+
_ Code editor wrongly detects errors for libraries in code folder
76+
_ https://github.com/processing/processing/issues/3732
77+
_ "color type detected! this shouldn't be happening! please report"
78+
_ happens when user does 'new color' instead of 'color'
79+
_ https://github.com/processing/processing/issues/3739
8080
_ change Tool API because it's not one Editor per Tool anymore?
8181
_ or just change the documentation?
8282
_ Contributions Manager UI design

0 commit comments

Comments
 (0)