diff options
author | Charley Wang <chwang@redhat.com> | 2010-03-23 11:55:56 -0400 |
---|---|---|
committer | Charley Wang <chwang@redhat.com> | 2010-03-23 11:55:56 -0400 |
commit | 72cdb9cd5afd6936a189b26a29eb8aa23d32a4fa (patch) | |
tree | d5618b33b628e2c641535f3067616759eaf6f9f8 /parse.cxx | |
parent | e36ba31aa58694a18e8012e946f7b1e4dea51fd7 (diff) | |
download | systemtap-steved-72cdb9cd5afd6936a189b26a29eb8aa23d32a4fa.tar.gz systemtap-steved-72cdb9cd5afd6936a189b26a29eb8aa23d32a4fa.tar.xz systemtap-steved-72cdb9cd5afd6936a189b26a29eb8aa23d32a4fa.zip |
PR10913: Fix error messages when unable to close certain tokens
Diffstat (limited to 'parse.cxx')
-rw-r--r-- | parse.cxx | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -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 |