Mercurial > vim
comparison src/eval.c @ 17661:da7890e3359b v8.1.1828
patch 8.1.1828: not strict enough checking syntax of method invocation
commit https://github.com/vim/vim/commit/5184132ec015f5889a3195d911e609d214f06bed
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Aug 8 21:10:01 2019 +0200
patch 8.1.1828: not strict enough checking syntax of method invocation
Problem: Not strict enough checking syntax of method invocation.
Solution: Check there is no white space inside ->method(.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 08 Aug 2019 21:15:05 +0200 |
parents | e5397617d6ca |
children | 06c3e15ad84d |
comparison
equal
deleted
inserted
replaced
17660:fc25327e28ea | 17661:da7890e3359b |
---|---|
4860 { | 4860 { |
4861 if (verbose) | 4861 if (verbose) |
4862 semsg(_(e_missingparen), name); | 4862 semsg(_(e_missingparen), name); |
4863 ret = FAIL; | 4863 ret = FAIL; |
4864 } | 4864 } |
4865 else if (VIM_ISWHITE((*arg)[-1])) | |
4866 { | |
4867 if (verbose) | |
4868 semsg(_("E274: No white space allowed before parenthesis")); | |
4869 ret = FAIL; | |
4870 } | |
4865 else | 4871 else |
4866 ret = eval_func(arg, name, len, rettv, evaluate, &base); | 4872 ret = eval_func(arg, name, len, rettv, evaluate, &base); |
4867 } | 4873 } |
4868 | 4874 |
4869 /* Clear the funcref afterwards, so that deleting it while | 4875 /* Clear the funcref afterwards, so that deleting it while |