mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
use splitTokens() on keywords to make less fussy, fix constant
This commit is contained in:
@@ -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];
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user