Skip to content
This repository was archived by the owner on Nov 21, 2019. It is now read-only.

Commit eed9e70

Browse files
bhagmanfacchinm
authored andcommitted
Fix keyword loading to use any whitespace as separator
Instead of forcing keywords.txt to use tabs, let library developers use spaces too.
1 parent 0460dc4 commit eed9e70

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/src/processing/app/syntax/PdeKeywords.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ private void parseKeywordsTxt(File input) throws Exception {
116116
continue;
117117
}
118118

119-
String pieces[] = PApplet.split(line, '\t');
119+
String pieces[] = line.split("\\s+", 4);
120120

121121
String keyword = pieces[0].trim();
122122
if (keyword.startsWith("\\#")) {

0 commit comments

Comments
 (0)