summaryrefslogtreecommitdiffstats
path: root/parse.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'parse.cxx')
-rw-r--r--parse.cxx7
1 files changed, 3 insertions, 4 deletions
diff --git a/parse.cxx b/parse.cxx
index 06ba88e9..6cdf76d9 100644
--- a/parse.cxx
+++ b/parse.cxx
@@ -894,8 +894,7 @@ skip:
if (c < 0 || c == '\n')
{
- n->type = tok_junk;
- break;
+ throw parse_error("Could not find matching closing quote", n);
}
if (c == '\"') // closing double-quotes
break;
@@ -994,8 +993,8 @@ skip:
c = c2;
c2 = input_get ();
}
- n->type = tok_junk;
- return n;
+
+ throw parse_error ("Could not find matching '%}' to close embedded function block", n);
}
// We're committed to recognizing at least the first character