diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2014-03-18 08:51:23 -0700 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2014-03-20 21:32:02 -0700 |
commit | e780637cf42bc8d26e0e963f5ff84b11007459c5 (patch) | |
tree | b55b7c766c7fcc2f8b70b4484d782247b7efd7b1 /parse_util.h | |
parent | d659e55646257128414af82866c913e14230b5b6 (diff) |
Add some tests for parse_util_detect_errors_in_argument
Diffstat (limited to 'parse_util.h')
-rw-r--r-- | parse_util.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/parse_util.h b/parse_util.h index cf885e05..e6ba1653 100644 --- a/parse_util.h +++ b/parse_util.h @@ -171,6 +171,11 @@ std::vector<int> parse_util_compute_indents(const wcstring &src); parser_test_error_bits_t parse_util_detect_errors(const wcstring &buff_src, parse_error_list_t *out_errors = NULL); +/** + Test if this argument contains any errors. Detected errors include syntax errors in command substitutions, improperly escaped characters and improper use of the variable expansion operator. + + This does NOT currently detect unterminated quotes. +*/ parser_test_error_bits_t parse_util_detect_errors_in_argument(const parse_node_t &node, const wcstring &arg_src, parse_error_list_t *out_errors = NULL); #endif |