Skip to content

Commit 5a854dc

Browse files
committed
hmm.. looks like there might be *tabs* in there too...
1 parent d41e48b commit 5a854dc

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

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

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,7 @@ private void addAllWebColorNumbers() {
284284
}
285285
}
286286

287+
287288
private ArrayList<ColorMode> findAllColorModes() {
288289
ArrayList<ColorMode> modes = new ArrayList<ColorMode>();
289290

@@ -400,6 +401,7 @@ private void createColorBoxes() {
400401
}
401402
}
402403

404+
403405
private void createColorBoxesForLights() {
404406
// search code for light color and material color functions.
405407
Pattern p = Pattern.compile("ambientLight[\\(\\s]|directionalLight[\\(\\s]"+
@@ -539,7 +541,7 @@ private void handleMultipleColorModes() {
539541
}
540542

541543

542-
public List<List<Range>> getAllScientificNotations() {
544+
private List<List<Range>> getAllScientificNotations() {
543545
//ArrayList<Range> notations[] = new ArrayList[codeTabs.length];
544546
List<List<Range>> notations = new ArrayList<>();
545547

@@ -560,7 +562,7 @@ public List<List<Range>> getAllScientificNotations() {
560562
}
561563

562564

563-
public static boolean containsTweakComment(String[] codeTabs) {
565+
static public boolean containsTweakComment(String[] codeTabs) {
564566
for (String tab : codeTabs) {
565567
if (hasTweakComment(tab)) {
566568
return true;
@@ -570,7 +572,7 @@ public static boolean containsTweakComment(String[] codeTabs) {
570572
}
571573

572574

573-
static public boolean lineHasTweakComment(int pos, String code) {
575+
static private boolean lineHasTweakComment(int pos, String code) {
574576
int lineEnd = getEndOfLine(pos, code);
575577
if (lineEnd < 0) {
576578
return false;
@@ -777,7 +779,7 @@ static public int getSetupStart(String code) {
777779
// }
778780

779781

780-
class Range {
782+
static class Range {
781783
int start;
782784
int end;
783785

0 commit comments

Comments
 (0)