Thanks Ella Couch for reporting this.
This commit is contained in:
Kartik K. Agaram 2016-06-30 10:45:26 -07:00
parent 1c13f42800
commit 2589de994d
1 changed files with 7 additions and 1 deletions

View File

@ -106,7 +106,7 @@ void slurp_quoted_comment_aware(istream& in, ostream& out) {
:(after "Parsing reagent(string s)")
if (s.at(0) == '[') {
assert(*s.rbegin() == ']');
if (*s.rbegin() != ']') return; // unbalanced bracket; handled elsewhere
name = s;
// delete [] delimiters
name.erase(0, 1);
@ -195,3 +195,9 @@ def main [
copy []
]
+parse: ingredient: {"": "literal-string"}
:(scenario multiple_unfinished_recipes)
% Hide_errors = true;
recipe f1 [
recipe f2 [
+error: unbalanced '['