commit | da70cf30ef9c03e5645de0df6f7d44ffb6b31f58 | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Sat Aug 06 22:13:03 2022 +0100 |
committer | Bram Moolenaar <Bram@vim.org> | Sat Aug 06 22:13:03 2022 +0100 |
tree | 953696adc6363cff1e11a71d0dad9053a59a029e | |
parent | 48ca24d913105a14cf6d723d45f6b39e7b7b7b77 [diff] [blame] |
patch 9.0.0159: cannot build with small features Problem: Cannot build with small features. Solution: Check for E1170 only with FEAT_EVAL.
diff --git a/src/vim9script.c b/src/vim9script.c index e9c9b2c..6f84362 100644 --- a/src/vim9script.c +++ b/src/vim9script.c
@@ -202,7 +202,11 @@ 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)