1
0
mirror of https://github.com/arduino/Arduino.git synced 2025-03-21 12:29:23 +01:00

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

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("\\#")) {