Fix keyword loading to use any whitespace as separator

Instead of forcing keywords.txt to use tabs, let library developers use spaces too.
This commit is contained in:
Brett Hagman 2017-09-04 00:59:52 -04:00 committed by Martino Facchin
parent 0460dc4941
commit eed9e7069f
1 changed files with 1 additions and 1 deletions

View File

@ -116,7 +116,7 @@ public class PdeKeywords {
continue;
}
String pieces[] = PApplet.split(line, '\t');
String pieces[] = line.split("\\s+", 4);
String keyword = pieces[0].trim();
if (keyword.startsWith("\\#")) {