summaryrefslogtreecommitdiff
path: root/Build/source/utils/asymptote/fileio.cc
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/utils/asymptote/fileio.cc')
-rw-r--r--Build/source/utils/asymptote/fileio.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/Build/source/utils/asymptote/fileio.cc b/Build/source/utils/asymptote/fileio.cc
index 913ad95c17e..061dadbb739 100644
--- a/Build/source/utils/asymptote/fileio.cc
+++ b/Build/source/utils/asymptote/fileio.cc
@@ -35,7 +35,7 @@ void ifile::ignoreComment()
stream->ignore();
if(c == '\n')
stream->ignore();
- } else {if(eol) stream->unget(); return;}
+ } else {if(c != EOF && eol) stream->unget(); return;}
}
}
@@ -115,6 +115,7 @@ void ifile::Read(string& val)
stream->ignore();
if(wordmode && !linemode)
while(isspace(stream->peek())) stream->ignore();
+ if(stream->peek() == '"') {quote=!quote; stream->ignore(); continue;}
if(s.empty() && c == '\n') {
stream->ignore();
continue;