Correct the caret position for unbalanced square brackets

This commit is contained in:
ridiculousfish
2015-08-10 19:30:21 -07:00
parent e34a8da5d7
commit aa76f64a94
5 changed files with 23 additions and 2 deletions

View File

@@ -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;