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:
parent
0460dc4941
commit
eed9e7069f
@ -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("\\#")) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user