hmm.. looks like there might be *tabs* in there too...

This commit is contained in:
Ben Fry
2015-04-24 00:13:36 -04:00
parent 045906d948
commit 5c749cd8c2

View File

@@ -284,6 +284,7 @@ public class SketchParser {
}
}
private ArrayList<ColorMode> findAllColorModes() {
ArrayList<ColorMode> modes = new ArrayList<ColorMode>();
@@ -400,6 +401,7 @@ public class SketchParser {
}
}
private void createColorBoxesForLights() {
// search code for light color and material color functions.
Pattern p = Pattern.compile("ambientLight[\\(\\s]|directionalLight[\\(\\s]"+
@@ -539,7 +541,7 @@ public class SketchParser {
}
public List<List<Range>> getAllScientificNotations() {
private List<List<Range>> getAllScientificNotations() {
//ArrayList<Range> notations[] = new ArrayList[codeTabs.length];
List<List<Range>> notations = new ArrayList<>();
@@ -560,7 +562,7 @@ public class SketchParser {
}
public static boolean containsTweakComment(String[] codeTabs) {
static public boolean containsTweakComment(String[] codeTabs) {
for (String tab : codeTabs) {
if (hasTweakComment(tab)) {
return true;
@@ -570,7 +572,7 @@ public class SketchParser {
}
static public boolean lineHasTweakComment(int pos, String code) {
static private boolean lineHasTweakComment(int pos, String code) {
int lineEnd = getEndOfLine(pos, code);
if (lineEnd < 0) {
return false;
@@ -777,7 +779,7 @@ public class SketchParser {
// }
class Range {
static class Range {
int start;
int end;