diff Implab/Parsing/Scanner.cs @ 60:10c7337d29e7

+JSONXmlReaderOptions *JSONScanner: fixed reading from TextReader *code cleanup
author cin
date Thu, 19 Jun 2014 03:41:28 +0400
parents 21611344d366
children 05e6468f066f
line wrap: on
line diff
--- a/Implab/Parsing/Scanner.cs	Wed Jun 18 03:54:02 2014 +0400
+++ b/Implab/Parsing/Scanner.cs	Thu Jun 19 03:41:28 2014 +0400
@@ -167,7 +167,8 @@
             m_pointer++;
 
             if (m_pointer >= m_bufferSize) {
-                return ReadNextChunk();
+                if (!ReadNextChunk())
+                    return false;
             }
 
             m_previewCode = m_alphabetMap[m_buffer[m_pointer]];