Mercurial > vim
comparison src/vim9compile.c @ 21216:bcd08812cde3 v8.2.1159
patch 8.2.1159: Vim9: no error for missing space after a comma
Commit: https://github.com/vim/vim/commit/6b7a0a8c201bbace7e69fe0709f72b95092193df
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Jul 8 18:38:08 2020 +0200
patch 8.2.1159: Vim9: no error for missing space after a comma
Problem: Vim9: no error for missing space after a comma.
Solution: Check for white space.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 08 Jul 2020 18:45:09 +0200 |
parents | 44611891e22c |
children | 1f4d0375f947 |
comparison
equal
deleted
inserted
replaced
21215:2f00e3222520 | 21216:bcd08812cde3 |
---|---|
3058 } | 3058 } |
3059 if (compile_expr0(&p, cctx) == FAIL) | 3059 if (compile_expr0(&p, cctx) == FAIL) |
3060 break; | 3060 break; |
3061 ++count; | 3061 ++count; |
3062 if (*p == ',') | 3062 if (*p == ',') |
3063 { | |
3063 ++p; | 3064 ++p; |
3065 if (*p != ']' && !IS_WHITE_OR_NUL(*p)) | |
3066 { | |
3067 semsg(_(e_white_after), ","); | |
3068 return FAIL; | |
3069 } | |
3070 } | |
3064 whitep = p; | 3071 whitep = p; |
3065 p = skipwhite(p); | 3072 p = skipwhite(p); |
3066 } | 3073 } |
3067 *arg = p; | 3074 *arg = p; |
3068 | 3075 |