diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2015-08-10 19:30:21 -0700 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2015-08-10 19:30:21 -0700 |
commit | aa76f64a94f9b8505e2093757ca2dbb3c8e44f88 (patch) | |
tree | 18e411fff5e09a5b50faeb441e7ea44a8bff97f9 /src/parse_tree.cpp | |
parent | e34a8da5d727ba26aeddd64e9b60a41c0c5312d3 (diff) |
Correct the caret position for unbalanced square brackets
Diffstat (limited to 'src/parse_tree.cpp')
-rw-r--r-- | src/parse_tree.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/parse_tree.cpp b/src/parse_tree.cpp index b31a6503..6238ad06 100644 --- a/src/parse_tree.cpp +++ b/src/parse_tree.cpp @@ -908,6 +908,10 @@ void parse_ll_t::report_tokenizer_error(const tok_t &tok) case TOK_UNTERMINATED_SUBSHELL: parse_error_code = parse_error_tokenizer_unterminated_subshell; break; + + case TOK_UNTERMINATED_SLICE: + parse_error_code = parse_error_tokenizer_unterminated_slice; + break; case TOK_UNTERMINATED_ESCAPE: parse_error_code = parse_error_tokenizer_unterminated_escape; |