Mercurial > vim
changeset 21389:6f5129b51c49 v8.2.1245
patch 8.2.1245: build failure in tiny version
Commit: https://github.com/vim/vim/commit/f398238a37522fed9a2e7915741d1ab14ccc81a0
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Jul 19 16:32:09 2020 +0200
patch 8.2.1245: build failure in tiny version
Problem: Build failure in tiny version.
Solution: Add #ifdef.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 19 Jul 2020 16:45:04 +0200 |
parents | 3788dfe9d3fd |
children | 00c6c02dc0b8 |
files | src/scriptfile.c src/version.c |
diffstat | 2 files changed, 10 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/scriptfile.c +++ b/src/scriptfile.c @@ -1768,8 +1768,11 @@ getsourceline(int c UNUSED, void *cookie if (sp->nextline != NULL && (*(p = skipwhite(sp->nextline)) == '\\' || (p[0] == '"' && p[1] == '\\' && p[2] == ' ') +#ifdef FEAT_EVAL || (in_vim9script() - && (*p == NUL || vim9_comment_start(p))))) + && (*p == NUL || vim9_comment_start(p))) +#endif + )) { garray_T ga; @@ -1798,8 +1801,11 @@ getsourceline(int c UNUSED, void *cookie ga_concat(&ga, p + 1); } else if (!(p[0] == '"' && p[1] == '\\' && p[2] == ' ') +#ifdef FEAT_EVAL && !(in_vim9script() - && (*p == NUL || vim9_comment_start(p)))) + && (*p == NUL || vim9_comment_start(p))) +#endif + ) break; /* drop a # comment or "\ comment line */ }