Skip to content

Commit f4cd50b

Browse files
author
Federico Fissore
committed
typos in keywords txt can break syntax highlighting
fixes #1269
1 parent 5cebf99 commit f4cd50b

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
@@ -98,7 +98,7 @@ static private void getKeywords(InputStream input) throws Exception {
9898
//String htmlFilename = second.substring(tab + 1).trim();
9999
String coloring = pieces[1].trim();
100100

101-
if (coloring.length() > 0) {
101+
if (coloring.length() > 0 && Character.isDigit(coloring.charAt(coloring.length() - 1))) {
102102
// text will be KEYWORD or LITERAL
103103
boolean isKey = (coloring.charAt(0) == 'K');
104104
// KEYWORD1 -> 0, KEYWORD2 -> 1, etc

0 commit comments

Comments
 (0)