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 -- [email protected] -- http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vim_dev/20220806211327.D99CE1C0EC3%40moolenaar.net.