Mercurial > vim
comparison src/vim9script.c @ 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 | 9d54c8e6c682 |
children | 6b7020f3d856 |
comparison
equal
deleted
inserted
replaced
29636:b741f05e2349 | 29637:3fcd11b8c81a |
---|---|
200 * Does not check for white space. | 200 * Does not check for white space. |
201 */ | 201 */ |
202 int | 202 int |
203 vim9_comment_start(char_u *p) | 203 vim9_comment_start(char_u *p) |
204 { | 204 { |
205 #ifdef FEAT_EVAL | |
205 return p[0] == '#' && !vim9_bad_comment(p); | 206 return p[0] == '#' && !vim9_bad_comment(p); |
207 #else | |
208 return p[0] == '#' && (p[1] != '{' || p[2] == '{'); | |
209 #endif | |
206 } | 210 } |
207 | 211 |
208 #if defined(FEAT_EVAL) || defined(PROTO) | 212 #if defined(FEAT_EVAL) || defined(PROTO) |
209 | 213 |
210 /* | 214 /* |