diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2014-02-17 14:51:51 -0800 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2014-02-17 14:52:08 -0800 |
commit | 2e1024d275f46a3355d1c5f505fad3a4fd536368 (patch) | |
tree | 4f2e3e04fe9085d887fad4fb0668e131ff71a2f1 /parse_tree.h | |
parent | 2253c57628201840254669ed8561720d4e334d26 (diff) |
Tweak error reporting in new parser to use fewer lines
Diffstat (limited to 'parse_tree.h')
-rw-r--r-- | parse_tree.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/parse_tree.h b/parse_tree.h index 77b29fc8..1835183d 100644 --- a/parse_tree.h +++ b/parse_tree.h @@ -34,7 +34,10 @@ struct parse_error_t size_t source_length; /** Return a string describing the error, suitable for presentation to the user. If skip_caret is false, the offending line with a caret is printed as well */ - wcstring describe(const wcstring &src, bool skip_caret = false) const; + wcstring describe(const wcstring &src) const; + + /** Return a string describing the error, suitable for presentation to the user, with the given prefix. If skip_caret is false, the offending line with a caret is printed as well */ + wcstring describe_with_prefix(const wcstring &src, const wcstring &prefix, bool skip_caret) const; }; typedef std::vector<parse_error_t> parse_error_list_t; |