From dd8f4172e47fc8c67491fb1900949560de455af8 Mon Sep 17 00:00:00 2001 From: Mike Cifelli Date: Thu, 8 Dec 2016 15:33:03 -0500 Subject: [PATCH] Fixed a bug where the LispFilterInputStream could not recognize an escaped double quote --- src/scanner/LispFilterInputStream.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/scanner/LispFilterInputStream.java b/src/scanner/LispFilterInputStream.java index a752fbe..85cea33 100644 --- a/src/scanner/LispFilterInputStream.java +++ b/src/scanner/LispFilterInputStream.java @@ -9,14 +9,14 @@ import java.io.IOException; */ public class LispFilterInputStream extends FilterInputStream { - private boolean inQuotedString; + private boolean isInQuotedString; private int previousCharacter; private int nextCharacter; public LispFilterInputStream(InputStream underlyingInputStream) { super(underlyingInputStream); - inQuotedString = false; + isInQuotedString = false; previousCharacter = 0; nextCharacter = 0; } @@ -40,7 +40,7 @@ public class LispFilterInputStream extends FilterInputStream { private void indicateEncounterWithStringBoundary() { if (haveEncounteredStringBoundary()) - inQuotedString = !inQuotedString; + isInQuotedString = !isInQuotedString; } private boolean haveEncounteredStringBoundary() { @@ -48,7 +48,7 @@ public class LispFilterInputStream extends FilterInputStream { } private boolean haveEnteredComment() { - return (nextCharacter == ';') && (!inQuotedString); + return (nextCharacter == ';') && (!isInQuotedString); } private void consumeAllBytesInComment() throws IOException {