From 90e0ae0c36c6abf9926419de7a9e674ff1832002 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Mon, 14 Sep 2015 21:38:58 -0700 Subject: 2194 --- 013literal_string.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to '013literal_string.cc') 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(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)) { -- cgit 1.4.1-2-gfad0 tr> about summary refs log blame commit diff stats
blob: 7b385706fc788fce57ea82dd64ed3a92b59c108e (plain) (tree)
1
2
3
4
5
6
7
8
9