comparison src/vim9compile.c @ 20019:e9af5a09a55b v8.2.0565

patch 8.2.0565: Vim9: tests contain superfluous line continuation Commit: https://github.com/vim/vim/commit/675f716efb534798a3bdb651cdb272302127602a Author: Bram Moolenaar <Bram@vim.org> Date: Sun Apr 12 22:53:54 2020 +0200 patch 8.2.0565: Vim9: tests contain superfluous line continuation Problem: Vim9: tests contain superfluous line continuation. Solution: Remove line continuation no longer needed. Skip empty lines.
author Bram Moolenaar <Bram@vim.org>
date Sun, 12 Apr 2020 23:00:03 +0200
parents c001ee73519a
children c85d4e173cc9
comparison
equal deleted inserted replaced
20018:33b501a289fc 20019:e9af5a09a55b
2063 if (cctx->ctx_lnum >= cctx->ctx_ufunc->uf_lines.ga_len) 2063 if (cctx->ctx_lnum >= cctx->ctx_ufunc->uf_lines.ga_len)
2064 break; 2064 break;
2065 line = ((char_u **)cctx->ctx_ufunc->uf_lines.ga_data)[cctx->ctx_lnum]; 2065 line = ((char_u **)cctx->ctx_ufunc->uf_lines.ga_data)[cctx->ctx_lnum];
2066 SOURCING_LNUM = cctx->ctx_ufunc->uf_script_ctx.sc_lnum 2066 SOURCING_LNUM = cctx->ctx_ufunc->uf_script_ctx.sc_lnum
2067 + cctx->ctx_lnum + 1; 2067 + cctx->ctx_lnum + 1;
2068 } while (line == NULL); 2068 } while (line == NULL || *skipwhite(line) == NUL);
2069 return line; 2069 return line;
2070 } 2070 }
2071 2071
2072 /* 2072 /*
2073 * If "*arg" is at the end of the line, advance to the next line. 2073 * If "*arg" is at the end of the line, advance to the next line.