diff options
author | Kartik Agaram <vc@akkartik.com> | 2019-04-16 17:11:50 -0700 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2019-04-16 17:11:50 -0700 |
commit | 8fd7deed6b7fedf0f0fa339181424a8718fa555e (patch) | |
tree | 14073e0a941f3cbe280f173556d87a2ac2f5d825 /subx | |
parent | 48f993d09b179b6a5acb1a516f1b3341fd3dd4b9 (diff) | |
download | mu-8fd7deed6b7fedf0f0fa339181424a8718fa555e.tar.gz |
5096
Diffstat (limited to 'subx')
-rw-r--r-- | subx/038---literal_strings.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/subx/038---literal_strings.cc b/subx/038---literal_strings.cc index db8579a3..a795ce23 100644 --- a/subx/038---literal_strings.cc +++ b/subx/038---literal_strings.cc @@ -118,7 +118,7 @@ void parse_instruction_character_by_character(const string& line_data, vector<li } result.words.push_back(word()); if (c == '"') { - // slurp word data + // string literal; slurp everything between quotes into data ostringstream d; d << c; while (has_data(in)) { @@ -154,7 +154,7 @@ void parse_instruction_character_by_character(const string& line_data, vector<li if (!m.str().empty()) result.words.back().metadata.push_back(m.str()); } else { - // slurp all characters until whitespace + // not a string literal; slurp all characters until whitespace ostringstream w; w << c; while (!isspace(in.peek()) && has_data(in)) { // peek can sometimes trigger eof(), so do it first |