Mercurial > vim
comparison src/list.c @ 21761:5a2373c25a86 v8.2.1430
patch 8.2.1430: Vim9: error for missing comma instead of extra white space
Commit: https://github.com/vim/vim/commit/db199216e81865350a8d56a603bb86cab672bfad
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Aug 12 18:01:53 2020 +0200
patch 8.2.1430: Vim9: error for missing comma instead of extra white space
Problem: Vim9: error for missing comma instead of extra white space.
Solution: Check if comma can be found after white space. (closes https://github.com/vim/vim/issues/6668)
Also check for extra white space in literal dict. (closes #6670)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 12 Aug 2020 18:15:04 +0200 |
parents | 963913d80284 |
children | f84625b961a8 |
comparison
equal
deleted
inserted
replaced
21760:5abc63ecc7a4 | 21761:5a2373c25a86 |
---|---|
1217 break; | 1217 break; |
1218 | 1218 |
1219 if (!had_comma) | 1219 if (!had_comma) |
1220 { | 1220 { |
1221 if (do_error) | 1221 if (do_error) |
1222 semsg(_("E696: Missing comma in List: %s"), *arg); | 1222 { |
1223 if (**arg == ',') | |
1224 semsg(_(e_no_white_before), ","); | |
1225 else | |
1226 semsg(_("E696: Missing comma in List: %s"), *arg); | |
1227 } | |
1223 goto failret; | 1228 goto failret; |
1224 } | 1229 } |
1225 } | 1230 } |
1226 | 1231 |
1227 if (**arg != ']') | 1232 if (**arg != ']') |