use splitTokens() on keywords to make less fussy, fix constant

This commit is contained in:
benfry
2012-12-19 21:25:29 +00:00
parent 509a1943f0
commit 9f3e599647
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -102,7 +102,8 @@ public abstract class Mode {
BufferedReader reader = PApplet.createReader(keywordFile);
String line = null;
while ((line = reader.readLine()) != null) {
String[] pieces = PApplet.trim(PApplet.split(line, '\t'));
// String[] pieces = PApplet.trim(PApplet.split(line, '\t'));
String[] pieces = PApplet.splitTokens(line);
if (pieces.length >= 2) {
String keyword = pieces[0];
String coloring = pieces[1];
+1 -1
View File
@@ -67,7 +67,7 @@ public class Token {
public static final byte FUNCTION3 = 13;
/** Built-in Processing functions (setup, draw, mouseDragged). */
public static final byte FUNCTION4 = 13;
public static final byte FUNCTION4 = 14;
/**
* Operator token id. This can be used to mark an