0
0
mirror of https://github.com/vim/vim.git synced 2025-09-27 04:14:06 -04:00

patch 9.0.0159: cannot build with small features

Problem:    Cannot build with small features.
Solution:   Check for E1170 only with FEAT_EVAL.
This commit is contained in:
Bram Moolenaar
2022-08-06 22:13:03 +01:00
parent 48ca24d913
commit da70cf30ef
3 changed files with 8 additions and 0 deletions

View File

@@ -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)