ref: 32242e0ff274c2f9645623bdd8fe66af5baea1db
parent: 91071009a8892793ff2a434de347d2d57cf313dd
author: ISSOtm <eldredhabert0@gmail.com>
date: Sun Apr 10 14:04:36 EDT 2022
Switch from colon separators to semicolon As documented, oops
--- a/src/gfx/pal_spec.cpp
+++ b/src/gfx/pal_spec.cpp
@@ -114,7 +114,7 @@
// Skip whitespace, if any
skipWhitespace(arg, n);
- // Skip comma/colon, or end
+ // Skip comma/semicolon, or end
if (n == arg.length()) {
break;
}
@@ -124,11 +124,11 @@
++nbColors;
- // A trailing comma may be followed by a colon
+ // A trailing comma may be followed by a semicolon
skipWhitespace(arg, n);
if (n == arg.length()) {
break;
- } else if (arg[n] != ':') {
+ } else if (arg[n] != ';') {
if (nbColors == 4) {
parseError(n, 1, "Each palette can only contain up to 4 colors");
return;
@@ -137,7 +137,7 @@
}
[[fallthrough]];
- case ':':
+ case ';':
++n;
skipWhitespace(arg, n);
@@ -149,11 +149,11 @@
break;
default:
- parseError(n, 1, "Unexpected character, expected ',', ':', or end of argument");
+ parseError(n, 1, "Unexpected character, expected ',', ';', or end of argument");
return;
}
- // Check again to allow trailing a comma/colon
+ // Check again to allow trailing a comma/semicolon
if (n == arg.length()) {
break;
}