Be pickier about syntax.

This commit is contained in:
Dianne Skoll
2024-12-10 10:25:38 -05:00
parent ffd309f89d
commit f4018892e8

View File

@@ -237,11 +237,16 @@ DoTranslate(ParsePtr p)
if (c != '"') {
r = ParseToken(p, &orig);
if (r) return r;
r = VerifyEoln(p);
if (!StrCmpi(DBufValue(&orig), "dump")) {
DBufFree(&orig);
if (r) return r;
DumpTranslationTable(stdout);
return OK;
}
if (!StrCmpi(DBufValue(&orig), "clear")) {
DBufFree(&orig);
if (r) return r;
ClearTranslationTable();
return OK;
}