about summary refs log tree commit diff stats
path: root/016dilated_reagent.cc
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2016-08-22 08:34:02 -0700
committerKartik K. Agaram <vc@akkartik.com>2016-08-22 08:34:02 -0700
commit780b2ce115a64b863b584bb34fc359dfccfd06eb (patch)
tree43dac781d093b657e600a4b9fc4fbe3ff3aa8452 /016dilated_reagent.cc
parente33b0815d44359014cfe4284e1e6064b7ae3db21 (diff)
downloadmu-780b2ce115a64b863b584bb34fc359dfccfd06eb.tar.gz
3242
Drop support for escape characters in dilated reagents. We haven't felt
the need for it yet, we have no tests for it, and eventually when we do
we want to treat escapes the way we treat them in the rest of the
language. (commit 3233)
Diffstat (limited to '016dilated_reagent.cc')
-rw-r--r--016dilated_reagent.cc9
1 files changed, 1 insertions, 8 deletions
diff --git a/016dilated_reagent.cc b/016dilated_reagent.cc
index 42bcfa70..09715848 100644
--- a/016dilated_reagent.cc
+++ b/016dilated_reagent.cc
@@ -53,19 +53,12 @@ bool start_of_dilated_reagent(istream& in) {
 
 // Assume the first letter is an open bracket, and read everything until the
 // matching close bracket.
-// We balance {} () and []. And we skip one character after '\'.
+// We balance {} () and [].
 string slurp_balanced_bracket(istream& in) {
   ostringstream result;
   char c;
   list<char> open_brackets;
   while (in >> c) {
-    if (c == '\\') {
-      // always silently skip the next character
-      result << c;
-      if (!(in >> c)) break;
-      result << c;
-      continue;
-    }
     if (c == '(') open_brackets.push_back(c);
     if (c == ')') {
       assert(open_brackets.back() == '(');