Mercurial > vim
comparison src/vim9type.c @ 23888:d95403445b6b v8.2.2486
patch 8.2.2486: Vim9: some errors for white space do not show context
Commit: https://github.com/vim/vim/commit/ba98fb54aefada4c36390add4c7dd90b93e7e5bb
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Feb 7 18:06:29 2021 +0100
patch 8.2.2486: Vim9: some errors for white space do not show context
Problem: Vim9: some errors for white space do not show context.
Solution: Include the text at the error.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 07 Feb 2021 18:15:05 +0100 |
parents | 85cf06ddb2a8 |
children | 4b417b776b95 |
comparison
equal
deleted
inserted
replaced
23887:ee748fa7dcf5 | 23888:d95403445b6b |
---|---|
636 if (**arg != '<') | 636 if (**arg != '<') |
637 { | 637 { |
638 if (give_error) | 638 if (give_error) |
639 { | 639 { |
640 if (*skipwhite(*arg) == '<') | 640 if (*skipwhite(*arg) == '<') |
641 semsg(_(e_no_white_space_allowed_before_str), "<"); | 641 semsg(_(e_no_white_space_allowed_before_str_str), "<", *arg); |
642 else | 642 else |
643 emsg(_(e_missing_type)); | 643 emsg(_(e_missing_type)); |
644 } | 644 } |
645 return NULL; | 645 return NULL; |
646 } | 646 } |
777 break; | 777 break; |
778 | 778 |
779 if (*p != ',' && *skipwhite(p) == ',') | 779 if (*p != ',' && *skipwhite(p) == ',') |
780 { | 780 { |
781 if (give_error) | 781 if (give_error) |
782 semsg(_(e_no_white_space_allowed_before_str), ","); | 782 semsg(_(e_no_white_space_allowed_before_str_str), |
783 ",", p); | |
783 return NULL; | 784 return NULL; |
784 } | 785 } |
785 if (*p == ',') | 786 if (*p == ',') |
786 { | 787 { |
787 ++p; | 788 ++p; |