mirror of
https://github.com/AppleCommander/bastools.git
synced 2026-04-26 18:17:52 +00:00
Adding in quote and whitespace handling that was somehow missed.
This commit is contained in:
@@ -64,7 +64,10 @@ public class NibbleCheckit extends LineOrientedProofReader {
|
||||
}
|
||||
case STRING -> String.format("\"%s\"", token.text());
|
||||
};
|
||||
boolean inQuote = false;
|
||||
for (char ch : value.toCharArray()) {
|
||||
if (ch == '"') inQuote = !inQuote;
|
||||
if (!inQuote && ch == ' ') continue;
|
||||
lineChecksum = checkit(lineChecksum, ch|0x80);
|
||||
}
|
||||
return token;
|
||||
|
||||
Reference in New Issue
Block a user