comparison src/vim9expr.c @ 27539:ce4c2f4ce1f9 v8.2.4296

patch 8.2.4296: Vim9: not all code covered by tests Commit: https://github.com/vim/vim/commit/83d0cec95697c244c8096c78aa806469302a8e19 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Feb 4 21:17:58 2022 +0000 patch 8.2.4296: Vim9: not all code covered by tests Problem: Vim9: not all code covered by tests. Solution: Add a few more tests for corner cases. Fix hang when single quote is missing.
author Bram Moolenaar <Bram@vim.org>
date Fri, 04 Feb 2022 22:30:04 +0100
parents 29104ffb4dca
children 68eac9355e49
comparison
equal deleted inserted replaced
27538:f37561549ec2 27539:ce4c2f4ce1f9
2822 char_u *next; 2822 char_u *next;
2823 2823
2824 // Ignore all kinds of errors when not producing code. 2824 // Ignore all kinds of errors when not producing code.
2825 if (cctx->ctx_skip == SKIP_YES) 2825 if (cctx->ctx_skip == SKIP_YES)
2826 { 2826 {
2827 int prev_did_emsg = did_emsg;
2828
2827 skip_expr_cctx(arg, cctx); 2829 skip_expr_cctx(arg, cctx);
2828 return OK; 2830 return did_emsg == prev_did_emsg ? OK : FAIL;
2829 } 2831 }
2830 2832
2831 // Evaluate the first expression. 2833 // Evaluate the first expression.
2832 if (compile_expr2(arg, cctx, ppconst) == FAIL) 2834 if (compile_expr2(arg, cctx, ppconst) == FAIL)
2833 return FAIL; 2835 return FAIL;