Patch 9.0.0159

4 views
Skip to first unread message

Bram Moolenaar

unread,
Aug 6, 2022, 5:13:40 PM8/6/22
to vim...@googlegroups.com

Patch 9.0.0159 (after 9.0.0156)
Problem: Cannot build with small features.
Solution: Check for E1170 only with FEAT_EVAL.
Files: src/ex_docmd.c, src/vim9script.c


*** ../vim-9.0.0158/src/ex_docmd.c 2022-08-06 18:12:02.962750601 +0100
--- src/ex_docmd.c 2022-08-06 22:09:21.250904827 +0100
***************
*** 2846,2854 ****
--- 2846,2856 ----
{
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;
}
*** ../vim-9.0.0158/src/vim9script.c 2022-08-06 18:12:02.962750601 +0100
--- src/vim9script.c 2022-08-06 22:11:06.966691688 +0100
***************
*** 202,208 ****
--- 202,212 ----
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)
*** ../vim-9.0.0158/src/version.c 2022-08-06 22:02:58.187795341 +0100
--- src/version.c 2022-08-06 22:12:47.094498518 +0100
***************
*** 737,738 ****
--- 737,740 ----
{ /* Add new patch number below this line */
+ /**/
+ 159,
/**/

--
hundred-and-one symptoms of being an internet addict:
262. Your computer has it's own phone line - but your daughter doesn't.

/// Bram Moolenaar -- Br...@Moolenaar.net -- http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
Reply all
Reply to author
Forward
0 new messages