You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit ed9e83b
Browse filesBrowse the repository at this point in the historyBrowse files
if (KW.contains(_d)) return"'"+_d+"' is a reserved keyword";
160
159
}
161
-
if (msg.contains("expected ';' but found '") && msg.replaceAll(".*but found '(.+?)'.*", "$1").matches("[^a-zA-Z0-9_]+")) { Stringtok = msg.replaceAll(".*but found '(.+?)'.*", "$1"); return"invalid token '" + tok + "'"; }
160
+
if (msg.contains("expected ';' but found '")) {
161
+
Stringtok = msg.replaceAll(".*but found '(.+?)'.*", "$1");
162
+
if (tok.matches("[^a-zA-Z0-9_]+")) return"invalid token '" + tok + "'";
163
+
}
162
164
if (msg.contains("expected ';'")) return"missing ';' here";
163
165
if (msg.contains("expected '(' before") || msg.contains("expected '(' but found")) return"'(' is required after 'if'/'while'/'for'/'switch'";
164
166
if (msg.contains("expected ')'")) return"missing ')' to close this";
0 commit comments