about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-05-28 13:31:20 -0700
committerKartik K. Agaram <vc@akkartik.com>2015-05-28 13:31:20 -0700
commitff58b4569239760188b545d4c54e375788fe9e68 (patch)
tree276909b80a187b3372ad479b0d48de06fff5748f
parent029c04e2ead2eb2d111637fffbafb9afca5a4d7e (diff)
downloadmu-ff58b4569239760188b545d4c54e375788fe9e68.tar.gz
1502
-rw-r--r--013literal_string.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/013literal_string.cc b/013literal_string.cc
index 9b8ecba6..02e8ea93 100644
--- a/013literal_string.cc
+++ b/013literal_string.cc
@@ -34,19 +34,19 @@ string slurp_quoted(istream& in) {
   assert(!in.eof());
   assert(in.peek() == '[');
   ostringstream out;
-  int size = 0;
+  int brace_depth = 0;
   while (!in.eof()) {
     char c = in.get();
-//?     cout << (int)c << ": " << size << '\n'; //? 2
+//?     cout << (int)c << ": " << brace_depth << '\n'; //? 2
     if (c == '\\') {
       out << (char)in.get();
       continue;
     }
     out << c;
 //?     cout << out.str() << "$\n"; //? 1
-    if (c == '[') ++size;
-    if (c == ']') --size;
-    if (size == 0) break;
+    if (c == '[') ++brace_depth;
+    if (c == ']') --brace_depth;
+    if (brace_depth == 0) break;
   }
   return out.str();
 }