Mercurial > vim
changeset 29637:3fcd11b8c81a v9.0.0159
patch 9.0.0159: cannot build with small features
Commit: https://github.com/vim/vim/commit/da70cf30ef9c03e5645de0df6f7d44ffb6b31f58
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Aug 6 22:13:03 2022 +0100
patch 9.0.0159: cannot build with small features
Problem: Cannot build with small features.
Solution: Check for E1170 only with FEAT_EVAL.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 06 Aug 2022 23:15:04 +0200 |
parents | b741f05e2349 |
children | e580b15a240d |
files | src/ex_docmd.c src/version.c src/vim9script.c |
diffstat | 3 files changed, 8 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ex_docmd.c +++ b/src/ex_docmd.c @@ -2846,9 +2846,11 @@ parse_command_modifiers( { if (has_cmdmod(cmod, FALSE)) *errormsg = _(e_command_modifier_without_command); +#ifdef FEAT_EVAL if (eap->cmd[0] == '#' && eap->cmd[1] == '{' && eap->cmd[2] != '{') *errormsg = _(e_cannot_use_hash_curly_to_start_comment); +#endif } return FAIL; }
--- a/src/version.c +++ b/src/version.c @@ -736,6 +736,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 159, +/**/ 158, /**/ 157,
--- a/src/vim9script.c +++ b/src/vim9script.c @@ -202,7 +202,11 @@ vim9_bad_comment(char_u *p) int vim9_comment_start(char_u *p) { +#ifdef FEAT_EVAL return p[0] == '#' && !vim9_bad_comment(p); +#else + return p[0] == '#' && (p[1] != '{' || p[2] == '{'); +#endif } #if defined(FEAT_EVAL) || defined(PROTO)