about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-09-14 21:38:58 -0700
committerKartik K. Agaram <vc@akkartik.com>2015-09-14 21:39:07 -0700
commit90e0ae0c36c6abf9926419de7a9e674ff1832002 (patch)
tree5d10288cd35b7ca545d4f3e052ec7d36bc7d41c0
parentc91d4b7d3bea0e4d21bea1efaea93f3ccc7257b7 (diff)
downloadmu-90e0ae0c36c6abf9926419de7a9e674ff1832002.tar.gz
2194
-rw-r--r--013literal_string.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/013literal_string.cc b/013literal_string.cc
index 60c8f58a..7424a31d 100644
--- a/013literal_string.cc
+++ b/013literal_string.cc
@@ -33,7 +33,7 @@ Type_ordinal["literal-string"] = 0;
 string slurp_quoted(istream& in) {
   ostringstream out;
   assert(!in.eof());  assert(in.peek() == '[');  out << static_cast<char>(in.get());  // slurp the '['
-  if (code_string(in, out))
+  if (is_code_string(in, out))
     slurp_quoted_comment_aware(in, out);
   else
     slurp_quoted_comment_oblivious(in, out);
@@ -42,7 +42,7 @@ string slurp_quoted(istream& in) {
 
 // A string is a code string if it contains a newline before any non-whitespace
 // todo: support comments before the newline. But that gets messy.
-bool code_string(istream& in, ostringstream& out) {
+bool is_code_string(istream& in, ostringstream& out) {
   while (!in.eof()) {
     char c = in.get();
     if (!isspace(c)) {