about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--subx/038---literal_strings.cc4
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