Mercurial > vim
comparison src/vim9script.c @ 23877:85cf06ddb2a8 v8.2.2480
patch 8.2.2480: Vim9: some errors for white space do not show context
Commit: https://github.com/vim/vim/commit/c3fc75db023f2acd0b82b7eebffd7ed89e8001ed
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Feb 7 15:28:09 2021 +0100
patch 8.2.2480: 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 15:30:03 +0100 |
parents | 85ce241ff9e3 |
children | 4b417b776b95 |
comparison
equal
deleted
inserted
replaced
23876:50f3627e6740 | 23877:85cf06ddb2a8 |
---|---|
627 emsg(_(e_type_or_initialization_required)); | 627 emsg(_(e_type_or_initialization_required)); |
628 return arg + STRLEN(arg); | 628 return arg + STRLEN(arg); |
629 } | 629 } |
630 if (!VIM_ISWHITE(p[1])) | 630 if (!VIM_ISWHITE(p[1])) |
631 { | 631 { |
632 semsg(_(e_white_space_required_after_str), ":"); | 632 semsg(_(e_white_space_required_after_str_str), ":", p); |
633 return arg + STRLEN(arg); | 633 return arg + STRLEN(arg); |
634 } | 634 } |
635 name = vim_strnsave(arg, p - arg); | 635 name = vim_strnsave(arg, p - arg); |
636 | 636 |
637 // parse type | 637 // parse type |